what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sivanandareddy y
Switch Case is used when you want to check whether a
certain variable is equal to a set of particular values and
theres a different task to do for each value.If-then-else
is can be used to check for...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What does c mean in basketball?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Write a program to show the change in position of a cursor using c
Can a file other than a .h file be included with #include?
What do you understand by normalization of pointers?
When should the volatile modifier be used?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Why do we write return 0 in c?
What are the 5 types of inheritance in c ++?
What is an array? What the different types of arrays in c?
Why does everyone say not to use scanf? What should I use instead?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What are the properties of union in c?