what is the output of following question?
void main()
{
int i=0,a[3];
a[i]=i++;
printf("%d",a[i]
}
Answer Posted / sha
Vignesh, you are right about the post incerement operation.
The a[i]=a[0] which will be assigned 0 but the printf will
print 0 as output because its printing the a[0] and not a
[1].
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is identifier in c?
How can this be legal c?
What are the types of c language?
What is context in c?
Why we write conio h in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is meant by int main ()?
difference between object file and executable file
What is the return type of sizeof?
What are inbuilt functions in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Why doesnt this code work?
What does int main () mean?
What is the purpose of main( ) in c language?