answersLogoWhite

0


Best Answer

A semi-colon denotes the end of a statement. If you omit the semi-colon, the statement will extend into the next expression and this will result in a compiler error because a semi-colon will have been expected at the end of the first expression.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When no semicolon is used after printf statement what will be the output?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can anyone give a logic in c plus plus to print something on screen using printf statement but without semicolon used after printf statement?

try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}


Which symbol is used as a statement terminator in C?

semicolon ';' (Not applicable for block-statements)


What is printf function?

Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');


Where you have to put semicolon in c programming?

For clasesses it defines from which class to inherit. :: means area of visibility in certain name space.


Why the semicoloumn is used in c program?

Why semicolon? Tradition.What does it do? Terminates a single statement, eg:i+= 3; /* expression is a single statement */{ i= 3; --j; } /* no semicolon after the compound statement */


Can an for loop be terminated with a semicolon in c language?

Sure.for (i=0; i


Why semicolon is not used in a for loop?

Why not? In this example there three semicolons, and one colon. for (i=0; i<10; i>3? i+=2: i++) printf ("%d\n", i);


Is printf keyword?

== == What is printf in c or prototype of printf with example (q) What is prototype of printf function ? Explain each term. Ans: Prototype of printf function is : int printf( const char *format ,…) Explanation of each term : Parameter of printf function is : (three continuous dots) : It is called ellipsis. It indicates the variable number of arguments. Example of ellipsis: #include void ellipsis(int a,...); void main() { int a=5,b=10; clrscr(); ellipsis(a,b); getch(); } void ellipsis(int a,...) { printf("%d ",a); } Output:5 So printf function can have any number of variables as an argument.


Is output function printf can not be used in C plus plus programs?

Whoever said so, they were wrong. For sure "printf" can be used without any problem.


What is the difference between the printf and scanf statements in C?

well major difference between scanf and printf is that scanf is an input statment and printf is an output stament scanf is used to take data in from the user and printf is used to display the result on the screen Regards


What is the difference between cprintf and printf?

The printf function calls on fprintf to write the result of sprintf to standard output. That is:printf("%i\n", 42);is exactly equivalent to:fprintf(stdout, "%i\n", 42);


What is the difference between the usage of semicolon and comma BASIC progamming?

A semicolon can be used for separating the initial value, condition, and increment statement within a for loop. A comma can be used to separate elements of an array and parameters for methods and classes.