print any message without semicolon of end of the printing statement.
Let's See Simple Example To Print "Hello World" Using If Statement And
Without Using Semicolon:
#include<stdio.h>
int main()
{
if(printf("hello world"))
{
//Block of if statement
}
return 0;
}
Output:
hello world
Write below C programs for pratice purpose:
Run above same program using swith case and loops(for loop, while loop and do..while loop).
0 Comments
Enter Your Comment