| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to do in place reversal of a linked list(singly or
doubly)? | | 1 |
| Software Interview Questions | CAT | 1 |
| Why does not use getgh(); and <conio.h> in c language. | Elofic | 1 |
| The differences between Windows XP and Windows Visa
| HCL | 6 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| 1,1,5,17,61,217,?,?. | | 3 |
| write a C code To reverse a linked list | Motorola | 1 |
| #define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
| NDS | 1 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 5 |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i);
| HCL | 5 |
| main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
} | NDS | 12 |
| how to find that no is int or float? | | 4 |
| 4.A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 4 |
| what is use#in c | | 2 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 4 |
| main()
{
printf(5+"Vidyarthi Computers");
} | | 5 |
| WAP – represent a char in binary format
| Motorola | 4 |
| What will be printed as the result of the operation below:
#include<..>
int x;
int modifyvalue()
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void main()
{
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
} | | 2 |
| Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks. | Google | 3 |
| |
| For more C Interview Questions Click Here |