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 null string in c?
What are header files why are they important?
can anyone suggest some site name..where i can get some good data structure puzzles???
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is array in c with example?
Is linux written in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
How can I change their mode to binary?
What is register variable in c language?
Explain what is the difference between a free-standing and a hosted environment?
What are the different types of data structures in c?
What is the use of #define preprocessor in c?
What is main () in c language?
Write a program to swap two numbers without using third variable in c?
plz let me know how to become a telecom protocol tester. thank you.