main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / sathya
num[i]=i+1
num[1]=1+1=2, but num[1] is 1.so there is a error...
| Is This Answer Correct ? | 4 Yes | 13 No |
Post New Answer View All Answers
write a c program in such a way that if we enter the today date the output should be next day's date.
what is ur strangth & weekness
What is array of structure in c?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is the meaning of ?
Why is struct padding needed?
What is difference between && and & in c?
Explain what is a program flowchart and explain how does it help in writing a program?
What is a program flowchart and explain how does it help in writing a program?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Is fortran faster than c?
what value is returned to operating system after program execution?
What is extern storage class in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What happens if you free a pointer twice?