main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / ssssssssss

output
2

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pass by reference in c?

611


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3691


What is the sizeof () operator?

624


What is the use of linkage in c language?

615


Can main () be called recursively?

627






Give the rules for variable declaration?

674


Differentiate between the = symbol and == symbol?

712


How to write c functions that modify head pointer of a linked list?

544


What is the difference between struct and typedef struct in c?

657


How can I generate floating-point random numbers?

603


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1126


cavium networks written test pattern ..

3596


How do I use void main?

631


Which is better pointer or array?

597


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

669