main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answers were Sorted based on User's Feedback
Answer / mortal
num[i] is num[1] and its reassigned as i++ that is 1 thus it
will print 1.
but im not at all sure about this..
| Is This Answer Correct ? | 2 Yes | 10 No |
Answer / 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 |
What is the size of array float a(10)?
What is define directive?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
how to find out the reverse number of a digit if it is input through the keyboard?
pierrot's divisor program using c or c++ code
Wt are the Buses in C Language
what is the function of void main()?
write the program for prime numbers?
73 Answers Accenture, Aptech, Infosys, TCS,
how to calculate the time complexity of a given algorithm? pls give exaples..mainly for the coplexities such as O(log n),O(n log n)...
Where are c variables stored in memory?
What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }
Is c still used?