what is the different between if-else and switch statment
(other than syntax)
Answer Posted / nabila
if else use only the statements that are in two condition
switch atatements use different cases
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is string function c?
How do we declare variables in c?
What is the advantage of an array over individual variables?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What does sizeof function do?
Explain a pre-processor and its advantages.
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Which is the best website to learn c programming?
What is the best style for code layout in c?
What are examples of structures?
Write a program to reverse a given number in c?
write a program in c language to print your bio-data on the screen by using functions.
What is the size of enum in bytes?
What is extern c used for?
What are runtime error?