#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / subha raman
yeah..itz mainly syntax error..
there shud not be any declaration of variables..in
case "j"..it must be "case 2"only..
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
#include
What is c variable?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
How pointer is different from array?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is the difference between typedef struct and struct?
What does malloc () calloc () realloc () free () do?
What should malloc(0) do?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
Write a factorial program using C.
What is wrong with this program statement? void = 10;
Describe the steps to insert data into a singly linked list.
How #define works?