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

what will be the output?
}

Answer Posted / vijay

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

output:- 1

//if you have R&D mode then send the your view .No doubt ,
//it is correct.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the concatenation operator?

626


How to get string length of given string in c?

605


What is local and global variable in c?

614


Write program to remove duplicate in an array?

596


Why c is called object oriented language?

580






Explain bitwise shift operators?

628


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1588


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

1882


how to construct a simulator keeping the logical boolean gates in c

1723


What is difference between constant pointer and constant variable?

627


How do c compilers work?

606


What does struct node * mean?

595


Differentiate between a for loop and a while loop? What are it uses?

666


What is character constants?

711


Define circular linked list.

570