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 is header file definition?
Write a program in C to reverse a number by recursive function?
what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); }
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
marge linklist
What does #pragma once mean?
In which area global, external variables are stored?
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
How can you convert integers to binary or hexadecimal?
What the different types of arrays in c?