main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vijay
main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++; //num[2]=1; after compile time
printf("%d", num[i]);
}
}
output:- 1
//if you have R&D mode then send the your view .No doubt ,
//it is correct.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the size of enum in c?
How do you search data in a data file using random access method?
What is the use of a semicolon (;) at the end of every program statement?
Define recursion in c.
What is the difference between procedural and declarative language?
What do you mean by invalid pointer arithmetic?
all c language question
What is the difference between Printf(..) and sprint(...) ?
What is the use of f in c?
What is hungarian notation? Is it worthwhile?
What is the use of header files?
Can we change the value of constant variable in c?
How many main () function we can have in a project?
What is an identifier?
how could explain about job profile