main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / ismail
2 is the ans
num[i]=i++
num[1]=2
now num[1] is changed with 2(same as the previous value)
now to print num[i]=num[1] right?
its 2 which is in num[1] solved!!!!
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Do pointers store the address of value or the actual value of a variable?
Where static variables are stored in c?
When should a type cast be used?
Is that possible to store 32768 in an int data type variable?
What is n in c?
How can I find out how much free space is available on disk?
What is the scope of an external variable in c?
Why is this loop always executing once?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
show how link list can be used to repersent the following polynomial i) 5x+2
What is chain pointer in c?
Can the “if” function be used in comparing strings?
What is logical error?
Why c is called object oriented language?
What is structure and union in c?