Answer Posted / amit
A switch statement is a selection statement that lets you
transfer control to different statements within the switch
body depending on the value of the switch expression. The
switch expression must evaluate to an integral or enumeration
value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by inheritance?
What is structure padding and packing in c?
What is the difference between exit() and _exit() function in c?
Can I initialize unions?
What is a nested loop?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is c language and why we use it?
What is d'n in c?
What does p mean in physics?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What type is sizeof?
Difference between constant pointer and pointer to a constant.
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Explain what is wrong with this statement? Myname = ?robin?;