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
Difference between Function to pointer and pointer to function
What is a char in c?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is hash table in c?
Tell me the use of bit field in c language?
If errno contains a nonzero number, is there an error?
Are the outer parentheses in return statements really optional?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What are control structures? What are the different types?
What are the features of c languages?
Why we write conio h in c?
What does do in c?
What is volatile, register definition in C
What is the return type of sizeof?
What is logical error?