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 |
List the different types of c tokens?
What is 2 d array in c?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā%d\nā,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
What is the use of getch ()?
Difference between exit() and _exit() function?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Describe static function with its usage?
Is return a keyword in c?
Rapunzel walks into the forest of forgetfullness. She meets a Lion who lies on Monday Tuesdays and Wednesdays and meets a rabbit who lies on Thurs fridays and saturdays . On that day both say that "I lied yesterday". What day is it .
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
which types of data structure will i use to convert infix to post fix???
program to find the ASCII value of a number