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 |
What are the types of assignment statements?
Tell me when is a void pointer used?
Is multithreading possible in c?
Find MAXIMUM of three distinct integers using a single C statement
How does struct work in c?
Explain the difference between ++u and u++?
Read two numbers from keyboard and find maximum of them?
What is the use of a semicolon (;) at the end of every program statement?
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
What is the difference between mpi and openmp?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference