main()
{
float i=1.5;
switch(i)
{
case 1: printf("1");
case 2: printf("2");
default : printf("0");
}
}
Answer Posted / mina
Compiler Error.
switch operates only with char and int.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
write a simple calculator c program to perform addition, subtraction, mul and div.
How to palindrom string in c language?
How can you relate the function with the structure? Explain with an appropriate example.
Develop a routine to reflect an object about an arbitrarily selected plane
could you please send the program code for multiplying sparse matrix in c????
Design an implement of the inputs functions for event mode
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
write a program for area of circumference of shapes
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
What is full form of PEPSI
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??