main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / 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 |
Post New Answer View All Answers
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is volatile, register definition in C
How are structure passing and returning implemented?
What are the modifiers available in c programming language?
find the sum of two matrices and WAP for it.
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Why we use conio h in c?
What does == mean in texting?
Is there a way to switch on strings?
Here is a neat trick for checking whether two strings are equal
How to set file pointer to beginning c?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Is c still used?
What is the difference between local variable and global variable in c?
write a c program in such a way that if we enter the today date the output should be next day's date.