What is the output of the following program main();{printf
("chennai""superkings"};
a. Chennai
b. superkings
c. error
d. Chennai superkings
Answers were Sorted based on User's Feedback
Answer / goutham
error
declaration error after main() that is it declared as main();
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / steve booth
The character strings will be concatenated, but NO space will be inserted between the first and second. The correct answer is "chennaisuperkings".
| Is This Answer Correct ? | 8 Yes | 4 No |
Answer / isha
There is an error in this statement also:
printf("chennai""superkings"};
')' is missing in this printf statement
| Is This Answer Correct ? | 5 Yes | 1 No |
Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
Is main a keyword in c?
1. main() { printf("%d",printf("HelloSoft")); } Output?
Find occurence of a character in a sting.
What is modeling?
what is the use of getch() function in C program.. difference b/w getch() and getche()??
29 Answers HCL, IBM, Infosys, TCS, Wipro,
Why is sprintf unsafe?
What is meant by operator precedence?
What is strcmp in c?
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
What is the difference between strcpy() and memcpy() function in c programming?
What is the difference between null pointer and the void pointer?