| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| plz answer..... a program that reads non-negative integer
and computes and prints its factorial | | 2 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| C program to find frequency of each character in a text
file? | | 3 |
| True or false: If you continuously increment a variable, it
will become negative?
1) True
2) False
3) It depends on the variable type
| | 5 |
| what is output of the following statetment?Printf(“%x”,
-1<<4); ? | | 3 |
| can we print any string without using terminator? | Infosys | 2 |
| In scanf h is used for | BFL | 2 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| Will Macros support multiple arguments ?
| Oracle | 7 |
| What are Storage Classes in C ? | HP | 15 |
| 10. Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| Software Interview Questions | CAT | 1 |
| What is the Difference between Class and Struct? | Motorola | 9 |
| void main()
{
int i=5;
printf("%d",i++ + ++i);
} | ME | 11 |
| what is the associativity of bitwise OR operator? | | 1 |
| what is volatile in c language? | TCS | 1 |
| How to access or modify the const variable in c ? | HP | 4 |
| how to implement stack operation using singly linked list | | 1 |
| write a program structure to find average of given number | | 1 |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| |
| For more C Interview Questions Click Here |