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 / aswini
as there is no semicolon,uit will execute all the case
statements and j will be assigned as 500.
hence it will print 500..
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Which node is more powerful and can handle local information processing or graphics processing?
int i=10; printf("%d %d %d", i, i=20, i);
What is ponter?
How can you access memory located at a certain address?
What is meant by preprocessor in c?
What is gets() function?
What is structure packing in c?
what are bit fields? What is the use of bit fields in a structure declaration?
What is actual argument?
can any one provide me the notes of data structure for ignou cs-62 paper
What is modeling?
Write a program to reverse a linked list in c.
Give basis knowledge of web designing ...
What are enumerated types?