main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / xyz
the answer will be 3 b'coz whatever the "num[i] = i++;"
this expression the output will be depend's on "i" and
at last i will be 2 and num[2]=3 which is the answer.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Is c call by value?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is methods in c?
List the variables are used for writing doubly linked list program.
Can 'this' pointer by used in the constructor?
What is sizeof int in c?
hi any body pls give me company name interview conduct "c" language only
Why main is not a keyword in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What does nil mean in c?
largest Of three Number using without if condition?
What is identifiers in c with examples?
What is extern keyword in c?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is void main () in c?