| Other C Interview Questions |
| |
| Question |
Asked @ |
Answers |
| |
| What is an object?
|
| 5 |
| wat is the difference between array and pointer? |
Wipro | 4 |
| Find greatest of two numbers using macro |
Siemens | 3 |
| Write a program to display the no of bit difference between
any 2 given numbers
eg: Num1 will 12->1100
Num2 will 7->0111 the difference in bits are 2. |
| 4 |
| C passes By value or By reference? |
Geometric-Software | 5 |
| which will be first in c compiling ,linking or compiling
,debugging. |
Sonata | 3 |
| what is a stack
|
| 3 |
| How do i store a paragraph into a string?
for example, if i input a long paragraph, the program will
read the words one by one and concatenate them until no word
is left. |
| 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? |
AMDOC | 6 |
| how to determine the complexity of an algorithm as log(n) |
Google | 1 |
| differnce between do and do while |
DOEACC | 3 |
| Given an unsigned integer, find if the number is power of 2? |
| 5 |
| |
| For more C Interview Questions Click Here |