what is the output of following question?
void main()
{
int i=0,a[3];
a[i]=i++;
printf("%d",a[i]
}
Answer Posted / vignesh1988i
my opinion or wat i think is that ,
a[i]=i++; is given so...
here i++ is a post increment operation , so first it will assign the value to a[0]=0 , so a[0] will have 0 , and in next line a[i] is given in printf , so the value a[1] should get printed that will be garbage value.......
thank u
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Once I have used freopen, how can I get the original stdout (or stdin) back?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Multiply an Integer Number by 2 Without Using Multiplication Operator
What are keywords in c with examples?
What are qualifiers in c?
Do you have any idea about the use of "auto" keyword?
What is #include stdlib h?
What is the benefit of using an enum rather than a #define constant?
will u please send me the placement papers to my mail???????????????????
Under what circumstances does a name clash occur?
How can variables be characterized?
Can we change the value of constant variable in c?
What is #error and use of it?
In which language linux is written?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none