write a program to fined second smallest and largest element
in a given series of elements (without sorting)
Answer
Is This Answer Correct ? | 2 Yes | 4 No |
Question { 6139 }
A array contains dissimilar element how can we count,
and
A array contains dissimilar element how can we store in
another array with out repetition.
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
How to reverse a linked list
Answer
Is This Answer Correct ? | 6 Yes | 1 No |
Question { 4620 }
how to write a data 10 in address location 0x2000
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answer
Is This Answer Correct ? | 14 Yes | 5 No |
if function is declared as static in one source file, if I
would like to use the same function in some other source
file...is it possible....how ?
Answer
Is This Answer Correct ? | 9 Yes | 41 No |
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.
Answer
Is This Answer Correct ? | 0 Yes | 2 No |
Question { 2950 }
what would be the output of the following program
main()
{
int a[] = {1,2,3,4,5};
int *ptr = {a,a+1,a+2,a+3,a+4};
printf("%d %d %d %d",a,*ptr,**ptr,ptr);
}
}
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
Question { 2839 }
whenever a question is posted in a particular category in
allinterview.com, Is there any facility to receive an
indication mail.
For eg: I need to receive an indication email, whenever a
question is posted under the category “C Langauage”.
Answer
Is This Answer Correct ? | 3 Yes | 0 No |