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 / sathish
400
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
what is a function method?give example?
What is the difference between printf and scanf )?
How many levels of indirection in pointers can you have in a single declaration?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is an arrays?
Write a code to generate divisors of an integer?
What is scanf_s in c?
What is a structural principle?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is a pragma?
Write a program to reverse a string.
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What does calloc stand for?
Explain what is the purpose of "extern" keyword in a function declaration?