main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vijay
main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++; //num[2]=1; after compile time
printf("%d", num[i]);
}
}
output:- 1
//if you have R&D mode then send the your view .No doubt ,
//it is correct.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are identifiers c?
How to write c functions that modify head pointer of a linked list?
Compare array data type to pointer data type
What is the best way of making my program efficient?
Can we compile a program without main() function?
Explain how can I manipulate strings of multibyte characters?
What is an expression?
What are the different types of C instructions?
What is an auto keyword in c?
What is the difference between %d and %i?
What is c definition?
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 is a node in c?
What is the mean of function?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference