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 to find a missed value, if you want to store 100 values in a 99 sized array?
Can static variables be declared in a header file?
What is void main () in c?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Explain how do you determine a file’s attributes?
Can you return null in c?
can anyone please tell about the nested interrupts?
Can a void pointer point to a function?
Explain a pre-processor and its advantages.
What is the purpose of main() function?
What is a stream in c programming?
What is break in c?
Who invented b language?
How can you find out how much memory is available?
how to introdu5ce my self in serco