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


Please Help Members By Posting Answers For Below Questions

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

654


What is volatile, register definition in C

689


How are structure passing and returning implemented?

588


What are the modifiers available in c programming language?

738


find the sum of two matrices and WAP for it.

631






Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2118


Why we use conio h in c?

582


What does == mean in texting?

662


Is there a way to switch on strings?

613


Here is a neat trick for checking whether two strings are equal

564


How to set file pointer to beginning c?

666


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

578


Is c still used?

602


What is the difference between local variable and global variable in c?

687


write a c program in such a way that if we enter the today date the output should be next day's date.

1677