what is the different between if-else and switch statment
(other than syntax)
Answer Posted / kuldeep sadhu
actually if else is a cndition checking system but the
switch is a selection of user typed type......
& secondly switch does not check all cases but jump directly
on the user interested case but if checkes all.............
Is This Answer Correct ? | 61 Yes | 23 No |
Post New Answer View All Answers
Compare interpreters and compilers.
What is floating point constants?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
p*=(++q)++*--p when p=q=1 while(q<=6)
What functions are in conio h?
Write a program for Overriding.
Explain what is the benefit of using #define to declare a constant?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What’s a signal? Explain what do I use signals for?
what is event driven software and what is procedural driven software?
What are the 4 types of organizational structures?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Why can arithmetic operations not be performed on void pointers?
Is a house a mass structure?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?