40. WAP to understand [if] as a conditional – non iterative statement.
#include<stdio.h>
void
main()
{
int i =10,j=20;
printf("Hello World \n");
//if (i<j)
//if(i<j,0)
//if(i<j);
printf("Hello 1\n");
printf("Hello 2\n");
if(printf("1\n"))
printf("2\n");
if(!printf("3\n"))
printf("4\n");
}
Comments
Post a Comment