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 sizeof array in c?

771


What is #error and use of it?

910


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4398


How can I dynamically allocate arrays?

776


What is an auto keyword in c?

861


What is a pointer value and address in c?

818


What is preprocessor with example?

783


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

877


what is use of malloc and calloc?

1644


i want to know the procedure of qualcomm for getting a job through offcampus

2200


What is the meaning of ?

800


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1838


What is the purpose of clrscr () printf () and getch ()?

788


Explain what is the general form of a c program?

816


explain what are actual arguments?

829