why we are using semicolon at the end of printh statment

Answers were Sorted based on User's Feedback



why we are using semicolon at the end of printh statment..

Answer / shashi

semicolon is used for terminate the line

Is This Answer Correct ?    38 Yes 1 No

why we are using semicolon at the end of printh statment..

Answer / sri

every statement must be end with semicolon.so We use
semicolon.

Is This Answer Correct ?    5 Yes 22 No

Post New Answer

More C Interview Questions

#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

0 Answers   Wilco,


Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return - 1. The function should not make use of any C library function calls.

3 Answers   Google, Infosys, JTL, OpenFeel,


Can we increase size of array in c?

0 Answers  


what will be the output: main(){char ch;int a=10;printf("%d",ch);}

36 Answers   Accenture, TCS, Wipro,


What is meant by initialization and how we initialize a variable?

0 Answers  






main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?

5 Answers   TCS,


What are the different properties of variable number of arguments?

0 Answers  


Is file a keyword in c?

0 Answers  


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}

12 Answers   Google, Motorola,


What is string length in c?

0 Answers  


Find the highest of three numbers and print them using ascending orders?

1 Answers  


Categories