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 1f in c?
What functions are used for dynamic memory allocation in c language?
What are variables and it what way is it different from constants?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What are the properties of union in c?
How do you print only part of a string?
code for find determinent of amatrix
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What are extern variables in c?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Write a program to print factorial of given number without using recursion?
For what purpose null pointer used?
What is the difference between #include and #include 'file' ?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is difference between function overloading and operator overloading?