what is the output of the program and explain why??
#include<stdio.h>
void main ( )
{
int k=4,j=0:
switch (k)
{
case 3;
j=300;
case 4:
j=400:
case 5:
j=500;
}
printf (ā%d\nā,j);
}
Answer Posted / amik
the answer will b 500 becoz...when first k = 4 is
executing...the value of j is 400 den thr is no break
statement...so it will continue..nd at the end of the
switch..j will contain or retain.. the value 500
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we change the value of #define in c?
What is a substring in c?
In which layer of the network datastructure format change is done
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
When should a type cast be used?
What are header files in c programming?
What does the error message "DGROUP exceeds 64K" mean?
What is union in c?
How is a null pointer different from a dangling pointer?
How can you find the exact size of a data type in c?
code for find determinent of amatrix
How is actual parameter different from the formal parameter?
Explain what is a pragma?
What does %d do?
What is null pointer in c?