main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / sathya
num[i]=i+1
num[1]=1+1=2, but num[1] is 1.so there is a error...
| Is This Answer Correct ? | 4 Yes | 13 No |
Post New Answer View All Answers
What is a file descriptor in c?
what is the syallabus of computer science students in group- 1?
What is an endless loop?
What is the difference between mpi and openmp?
How is = symbol different from == symbol in c programming?
What does %p mean?
What are the types of unary operators?
What is bubble sort in c?
What is the difference between union and structure in c?
What is property type c?
Explain 'far' and 'near' pointers in c.
What does void main () mean?
Explain what is the benefit of using const for declaring constants?
What is c programming structure?
Why do we use null pointer?