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 |
How can a process change an environment variable in its caller?
Is c compiled or interpreted?
say the following declaration is correct nr not. int b=a,n=0;
Are bit fields portable?
What is volatile c?
How many parameters should a function have?
Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.
what is differnence b/w macro & functions
Write a program to find the biggest number of three numbers in c?
How is a structure member accessed?
Why should I prototype a function?
what is the difference between call by value and call by reference?
5 Answers Genpact, Global Logic, Infosys,