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

what will be the output?
}

Answer Posted / vyasaraj.s

The output is 3

Is This Answer Correct ?    21 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the condition that is applied with ?: Operator?

666


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

714


How can I read in an object file and jump to locations in it?

582


What is the difference between memcpy and memmove?

606


What is difference between far and near pointers?

613






Explain how can you be sure that a program follows the ansi c standard?

866


What is derived datatype in c?

638


given post order,in order construct the corresponding binary tree

2324


What is static and auto variables in c?

568


Difference between MAC vs. IP Addressing

643


How will you find a duplicate number in a array without negating the nos ?

1649


What are bitwise shift operators in c programming?

649


What is the most efficient way to store flag values?

690


Explain how can I prevent another program from modifying part of a file that I am modifying?

642


What is difference between array and pointer in c?

541