| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i);
| HCL | 5 |
| what is the use of pointers | | 5 |
| 6)swap(int x,y)
{
int temp;
temp=x;
x=y;
y=temp;
}
main()
{
int x=2;y=3;
swap(x,y);
}
after calling swap ,what are yhe values x&y?
| | 2 |
| identify the in correct expression
a.a=b=3=4;
b.a=b=c=d=0;
float a=int b=3.5;
d.int a;
float b;
a=b=3.5;
| TCS | 5 |
| How to reverse a string using a recursive function, with
swapping? | | 4 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| array contains zeros and ones as elements.we need to bring
zeros one side and one other side in single parse.
ex:a[]={0,0,1,0,1,1,0,0}
o/p={0,0,0,0,0,1,1,1} | Motorola | 7 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| how to print value of e(exp1)up to required no of digits
after decimal? | | 1 |
| difference between memcpy and strcpy | | 1 |
| implement general tree using link list | Wipro | 1 |
| What's the difference between calloc() and malloc()? | | 3 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| what is difference between array of characters and string | Accenture | 10 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
| CitiGroup | 15 |
| char ch="{'H','I',0};printf("%s",ch);what is output | Accenture | 9 |
| How can I return multiple values from a function? | | 4 |
| #define f(x)
main()
{
printf("\n%d",f(2+2));
} | | 3 |
| C,c++, Java is all are structural oriented or procedure
oriented language..? | | 3 |
| |
| For more C Interview Questions Click Here |