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 |
What is bubble sort technique in c?
what is unsigened char and what is the difference from char
What are keywords in c with examples?
What are the different types of pointers?
1. main() { printf("%d",printf("HelloSoft")); } Output?
What is the mean of function?
what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.
Explain how can you be sure that a program follows the ansi c standard?
what r the cpu registers r ther?
how can write all 1to 100 prime numbers using for loop,if and break ?
Explain what are compound statements?
where do we use volatile keyword?