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 / prashanth
the answer is 500 as break is not mentioned it goes to case
5 from case4 so value of j=500
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
I need previous papers of CSC.......plz help out by posting them.......
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is a newline escape sequence?
What is a global variable in c?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is %d used for?
What is the usage of the pointer in c?
Is boolean a datatype in c?
What is the difference between constant pointer and constant variable?
Explain what is a const pointer?
What is the difference between Printf(..) and sprint(...) ?
What is a pointer in c plus plus?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Which header file is essential for using strcmp function?
What is pointer & why it is used?