| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 10 |
| what is the benefit of c30 | | 1 |
| what are the difference between ANSI C and Let Us c and Turbo C | LG-Soft | 1 |
| what is the use of pointers | | 4 |
| what is a function pointer and how all to declare ,define
and implement it ??? | Honeywell | 3 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 1 |
| which of the following go out of the loopo if expn 2
becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}
| TCS | 2 |
| write a program to display the array elements in reverse
order in c language | | 2 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | | 2 |
| What is function pointer and where we will use it | NetApp | 1 |
| 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 |
| 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 |
| We can draw a box in cprogram by using only one printf();&
without using graphic.h header file? | NIIT | 2 |
| The differences between Windows XP and Windows Visa
| HCL | 6 |
| Find Error if any in below code, Justify ur answer:
struct xx
{
int a;
struct yy
{
char c;
struct xx* p;
}
struct yy* q;
} | NDS | 2 |
| int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
| Verifone | 11 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 2 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 4 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 4 |
| |
| For more C Interview Questions Click Here |