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

what will be the output?
}

Answer Posted / lukz

4 is output

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c system32 taskhostw exe?

586


What is the purpose of void in c?

619


What is the advantage of an array over individual variables?

742


How would you use the functions fseek(), freed(), fwrite() and ftell()?

702


What is gets() function?

667






Can you write a programmer for FACTORIAL using recursion?

610


How are pointers declared in c?

594


Are c and c++ the same?

627


What is this infamous null pointer, anyway?

609


Explain what is the concatenation operator?

626


Here is a good puzzle: how do you write a program which produces its own source code as output?

595


can we implement multi-threads in c.

665


What is the use of ?

622


Why is c not oop?

535


Can include files be nested? How many levels deep can include files be nested?

658