main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vyasaraj.s
The output is 3
| Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
What is the equivalent code of the following statement in WHILE LOOP format?
What is dangling pointer in c?
What is wrong with this declaration?
What are types of structure?
How can you determine the size of an allocated portion of memory?
What is the importance of c in your views?
Explain about C function prototype?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is scanf () in c?
What is the purpose of ftell?
What are header files in c programming?
What is the use of function overloading in C?
Can you please explain the difference between syntax vs logical error?
Describe the steps to insert data into a singly linked list.
When should volatile modifier be used?