if the area was hit by a virus and so the decrease in the
population because of death was x/3 and the migration from
other places increased a population by 2x then annually it
had so many ppl. find our the population in the starting.
What is difference between far and near pointers?
Why is sizeof () an operator and not a function?
Can a pointer be null?
11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
How does normalization of huge pointer works?
what is the difference b/w NULL and null?
Explain in detail how strset (string handling function works )pls explain it with an example.
If fflush wont work, what can I use to flush input?
Explain about the functions strcat() and strcmp()?
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.
Diff between for loop and while loop?