Question { 4335 }
Give a method to count the number of ones in a 32 bit number?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
Question { 6283 }
what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
Answer
Is This Answer Correct ? | 5 Yes | 5 No |
differentiate between
const char *a;
char *const a; and
char const *a;
Answer
Is This Answer Correct ? | 37 Yes | 2 No |
Question { 3131 }
Why cann't whole array can be passed to function as value.
Answer
Is This Answer Correct ? | 0 Yes | 4 No |
Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list?
Answer
Is This Answer Correct ? | 2 Yes | 1 No |
#define CUBE(x) (x*x*x)
main()
{ int a,b=3;
a=cube(b++);
printf("%d %d",a,b);
}
What should be the value of a and b? My calc a=4 but syst
a=6 how pls tell me if you know it?
Answer
Is This Answer Correct ? | 4 Yes | 9 No |
Question { 24699 }
c programming of binary addition of two binary numbers
Answer
Is This Answer Correct ? | 30 Yes | 12 No |
A man loses 20% of his money and after spending 70% of the
remainder he is left with Rs. 270. Originally he had
Answer
Is This Answer Correct ? | 15 Yes | 4 No |
Whats wrong with the following function
char *string()
{
char *text[20];
strcpy(text,"Hello world");
return text;
}
Answer
Is This Answer Correct ? | 13 Yes | 2 No |
What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}
Answer
Is This Answer Correct ? | 6 Yes | 16 No |
Question { 20276 }
In this four digit number, the second digit is half the
third digit which is three less than the first which is six
more than the fourth. If no digit is repeated, what is the
number
Answer
Is This Answer Correct ? | 11 Yes | 1 No |
Question { 18285 }
WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW
IT COME ..
#include
#include
void main()
{
int k=20;
printf("%d%d%d%d",k,k++,++k,k);
getch();
}
Answer
Is This Answer Correct ? | 9 Yes | 3 No |
write a c program to change only the 3rd bit of the
particular number such that other bits are not affected..
if bitnum=10(say.. it can be any no..
Answer
Is This Answer Correct ? | 1 Yes | 26 No |