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
pierrot's divisor program using c or c++ code
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is static memory allocation? Explain
Explain the term printf() and scanf() used in c language?
What is the significance of an algorithm to C programming?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is hungarian notation? Is it worthwhile?
In c programming language, how many parameters can be passed to a function ?
What is methods in c?
What is realloc in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
How can I change their mode to binary?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
Explain the use of bit fieild.