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 / kalyan chukka

Error Generated Because Case j is invalid declaration so
error generated

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way of making my program efficient?

572


How do you print only part of a string?

616


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1740


How is a null pointer different from a dangling pointer?

558


How can I call a function with an argument list built up at run time?

642






What is graph in c?

585


What is union and structure in c?

619


What is data types?

642


What are the 4 types of unions?

612


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14965


Why is not a pointer null after calling free?

599


If null and 0 are equivalent as null pointer constants, which should I use?

582


What is equivalent to ++i+++j?

644


write a c program to find the sum of five entered numbers using an array named number

1618


What is the code for 3 questions and answer check in VisualBasic.Net?

1695