main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / prakruthi
ryt answer is 3 for sure
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How do you construct an increment statement or decrement statement in C?
What are the advantages and disadvantages of a heap?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
How do c compilers work?
int far *near * p; means
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is data type long in c?
How do you define CONSTANT in C?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
Why do we need functions in c?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is the use of f in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
what is ur strangth & weekness
What is #error and use of it?