wat is output of the following
int main()
{
const int j=2;
int i;
switch(i)
{
case 1:break;
case j:break;
default:break;
}
}
Answers were Sorted based on User's Feedback
Answer / kalyan chukka
Error Generated Because Case j is invalid declaration so
error generated
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / 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 |
Write a program to find factorial of a number using recursive function.
How to write the code of the program to swap two numbers with in one statement?
What is structure packing ?
What is huge pointer in c?
Explain c preprocessor?
write a c prog for removing duplicate character from an array and sorting remaining elements using a single array
What is a lvalue
What is void main ()?
Explain how can I convert a string to a number?
Can a local variable be volatile in c?
Define function pointers?
What are inbuilt functions in c?