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 is a far pointer in c?
Explain the ternary tree?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is structure pointer in c?
What is the use of getchar() function?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Can we compile a program without main() function?
What is a stream water?
How will you find a duplicate number in a array without negating the nos ?
What is the default value of local and global variables in c?
What is structure packing in c?
What is the purpose of sprintf() function?
What are volatile variables in c?
What is the use of parallelize in spark?
What is storage class?