wat is output of the following
int main()
{
const int j=2;
int i;
switch(i)
{
case 1:break;
case j:break;
default:break;
}
}
Answer Posted / vikash gaurav
output will be nothing.... since i will have garbage value.
once going to switch case the value will not match with any
case so default value will be executed.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What does p mean in physics?
What are called c variables?
What is a #include preprocessor?
What is the code for 3 questions and answer check in VisualBasic.Net?
What are enums in c?
What does the format %10.2 mean when included in a printf statement?
What is the difference between functions getch() and getche()?
What do you mean by dynamic memory allocation in c?
what are bit fields in c?
Write a program to generate random numbers in c?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What does struct node * mean?
Explain the properties of union. What is the size of a union variable
Explain null pointer.
Difference between pass by reference and pass by value?