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
Why we write conio h in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is the difference between c &c++?
What is the benefit of using #define to declare a constant?
Where does the name "C" come from, anyway?
Why doesn't C support function overloading?
How is pointer initialized in c?
What are the advantage of c language?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
How will you delete a node in DLL?
Write a program to check armstrong number in c?
What does %2f mean in c?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What are the advantages and disadvantages of c language?
define string ?