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 / 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 |
Post New Answer View All Answers
What is s or c?
difference between native and cross compilers
What is a wrapper function in c?
Disadvantages of C language.
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
show how link list can be used to repersent the following polynomial i) 5x+2
What is static volatile in c?
Explain how do you list a file’s date and time?
What are header files and what are its uses in C programming?
How can I delete a file?
What is 1d array in c?
What are reserved words with a programming language?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Explain do array subscripts always start with zero?