| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is a far pointer | TCS | 9 |
| what is const volatile? | | 1 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 3 |
| how to print "hai" in c? | | 10 |
| What is volatile in c language? | HCL | 1 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
} | | 5 |
| define function | Assurgent | 4 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| What is the relation between # and include<stdio.h> | HCL | 3 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| Reverse a string word by word?? | | 6 |
| Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
| Mascot | 3 |
| Write a routine that prints out a 2-D array in spiral order! | Lucent | 1 |
| macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
| HCL | 8 |
| what is meant by c | | 4 |
| Find string palindrome 10marks
| Honeywell | 5 |
| 1,1,5,17,61,217,?,?. | | 3 |
| |
| For more C Interview Questions Click Here |