| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 1 |
| program to find the ASCII value of a number | | 5 |
| Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321 | | 2 |
| What is structure packing ? | HP | 1 |
| what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means.... | TCS | 1 |
| pick out the odd one out of the following
a.malloc()
b.calloc()
c.free()
d.realloc()
| TCS | 1 |
| write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer) | Wipro | 5 |
| What is the output for the program given below
typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}
| ADITI | 2 |
| difference between semaphores and mutex? | | 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 |
| what is the stackpointer | | 2 |
| Program to trim a given character from a string. | NetApp | 1 |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 2 |
| how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--); | RMSI | 13 |
| sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2;
Find the value of x? | Subex | 1 |
| write a program to find out number of on bits in a number?
| Huawei | 11 |
| how to connect oracle in C/C++. | | 2 |
| why TCS selected more student in the software field from
all institution. | TCS | 3 |
| 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?? | | 2 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 6 |
| |
| For more C Interview Questions Click Here |