main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / ssssssssss
output
2
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
Suggesting that there can be 62 seconds in a minute?
What is a pointer variable in c language?
Explain how do you sort filenames in a directory?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
How can I change their mode to binary?
What oops means?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Can the size of an array be declared at runtime?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can I access an I o board directly?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is double pointer?
What are loops in c?
Why are algorithms important in c program?
How can I insert or delete a line (or record) in the middle of a file?