Explain what is the benefit of using an enum rather than a #define constant?
No Answer is Posted For this Question
Be the First to Post Answer
how to use enum datatype?Please explain me?
how can i print "hello"
WHOT IS CHAR?
Why does everyone say not to use gets?
Why is c platform dependent?
what is the difference between declaration and definition of a variable or function ?
What is indirect recursion? give an example?
You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.
Is main is a keyword in c?
Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not
Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }