| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
| | 3 |
| main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs? | CitiGroup | 7 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| Is there any restriction in how many arguments printf or
scanf function can take?
in which file in my c++ compiler i can see the code for
implementation of these two functions?? | | 3 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| what is the associativity of bitwise OR operator? | | 1 |
| which operator having highest precedence?
a.)+ b.)++ c.)= d.)%
| | 3 |
| simple c program for 12345 convert 54321 with out using string | | 5 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
} | Satyam | 3 |
| what is the difference between structural,object
based,object orientd programming languages? | PanTerra | 1 |
| How to swap two values using a single variable ?
condition: Not to use Array and Pointer ? | | 4 |
| write a own function for strstr | LG-Soft | 1 |
| Add 2 64 bit numbers on a 32 bit machine | NetApp | 3 |
| main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
} | | 5 |
| main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
| ME | 2 |
| what is volatile in c language? | TCS | 1 |
| I have a function which accepts, and is supposed to
initialize,a pointer, but the pointer in the caller remains
unchanged. | | 1 |
| Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list? | Oracle | 1 |
| what r callback function? | | 1 |
| |
| For more C Interview Questions Click Here |