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

what will be the output?
}

Answer Posted / prakruthi

ryt answer is 3 for sure

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a process change an environment variable in its caller?

656


What do the functions atoi(), itoa() and gcvt() do?

726


What functions are used in dynamic memory allocation in c?

597


Write a C program in Fibonacci series.

635


How can I invoke another program or command and trap its output?

619






What is the difference between char array and char pointer?

527


Can a variable be both static and volatile in c?

609


What is union in c?

640


Explain the advantages of using macro in c language?

582


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1889


What is c language in simple words?

596


What is far pointer in c?

814


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

837


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

607


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

717