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
How can you be sure that a program follows the ANSI C standard?
For what purpose null pointer used?
Who is the main contributor in designing the c language after dennis ritchie?
write a proram to reverse the string using switch case?
hi any body pls give me company name interview conduct "c" language only
What are the types of functions in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Where is c used?
How can a string be converted to a number?
What is the difference between fread buffer() and fwrite buffer()?
What are the key features in c programming language?
What is line in c preprocessor?
How can you return multiple values from a function?
Can you write the function prototype, definition and mention the other requirements.
Which is better malloc or calloc?