What is difference between structure and union?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
write a program to display & create a rational number
write a program that will print %d in the output screen??
how to find the largest element of array without using relational operater?
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.
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
what is pointer ? what is the use of pointer?
What does volatile do?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is an endless loop?
What are valid signatures for the Main function?
Write a pro-gramme to determine whether the number is even or odd?