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
Explain what is the concatenation operator?
How to get string length of given string in c?
What is local and global variable in c?
Write program to remove duplicate in an array?
Why c is called object oriented language?
Explain bitwise shift operators?
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.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
how to construct a simulator keeping the logical boolean gates in c
What is difference between constant pointer and constant variable?
How do c compilers work?
What does struct node * mean?
Differentiate between a for loop and a while loop? What are it uses?
What is character constants?
Define circular linked list.