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
What is a good data structure to use for storing lines of text?
Explain pointers in c programming?
What is the sizeof () operator?
program for reversing a selected line word by word when multiple lines are given without using strrev
Why do we use & in c?
Why & is used in scanf in c?
Write a program on swapping (100, 50)
How can a program be made to print the name of a source file where an error occurs?
Why n++ execute faster than n+1 ?
By using C language input a date into it and if it is right?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What are the salient features of c languages?
What is external variable in c?