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 do I get an accurate error status return from system on ms-dos?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
swapping of two numbers without using third variable using AND and OR operators
What are runtime error?
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
give an example of type casting by a simple c program
Explain what is wrong with this program statement? Void = 10;
Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day
find out largest elemant of diagonalmatrix
Write a program to check prime number in c programming?
without using arithmatic operator convert an intger variable x into x+1