| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the difference between strcpy() and memcpy() function? | | 1 |
| char ch=10;printf("%d",ch);what is the output | Accenture | 11 |
| value = 0xabcd;
for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) {
foo();
if (loop & 1)
value >>= 1;
}
how many times is foo() executed? | Google | 5 |
| I have an array of 100 elements, each of which is a random
integer. I want to know which of the elements:
a) are multiples of 2
b) are multiples of 2 AND 5
c) have a remainder of 3 when divided by 7 | | 1 |
| Two's compliment of -5 | Adobe | 3 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 1 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| How would you find a cycle in a linked list?
| | 2 |
| What's wrong with "char *p; *p = malloc(10);"? | | 5 |
| When is an interface "good"?
| | 1 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| How can we open a file in Binary mode and Text mode?what is
the difference? | PanTerra | 1 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| what are two categories of clint-server application
development ? | | 1 |
| plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a . | | 3 |
| What are data breakpoints? | Adobe | 1 |
| |
| For more C Interview Questions Click Here |