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
Explain how can I make sure that my program is the only one accessing a file?
List the difference between a "copy constructor" and a "assignment operator"?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is scope rule in c?
What are the three constants used in c?
What is the size of empty structure in c?
What is null pointer constant?
What is page thrashing?
i want to know the procedure of qualcomm for getting a job through offcampus
What is bubble sort in c?
What is a volatile keyword in c?
What is function prototype?
What is LINKED LIST? How can you access the last element in a linked list?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 ā¦). Records the times. c). Do an analysis of the differences in times and submit it in class.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;