| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<= | Siemens | 7 |
| There is a 100-story building and you are given two eggs.
The eggs (and the building) have an interesting property
that if you throw the egg from a floor number less than X,
it will not break. And it will always brake if the floor
number is equal or greater than X. Assuming that you can
reuse the eggs which didn't broke; you got to find X in a
minimal number of throws. Give an algorithm to find X in
minimal number of throws. | | 2 |
| wats SIZE_T meant for? | | 1 |
| 34.what are bitwise shift operators?
35.what are bit fields? What is the use of bit fields in a
structure declaration?
36.what is the size of an integer variable?
37.what are the files which are automatically opened when a
c file is executed?
38.what is the little endian and big endian?
39.what is the use of fflush() function?
40.what is the difference between exit() and _exit() functions?
41.where does malloc() function get the memory?
42.what is the difference between malloc() and calloc()
function?
43.what is the difference between postfix and prefix unary
increment operators? | | 2 |
| difference between i++* and *++i | IBM | 2 |
| write a c program to accept a given integer value and print
its value in words | | 2 |
| 1,1,5,17,61,217,?,?. | | 3 |
| wats the diference btwen constant pointer and pointer to a
constant.pls give examples. | | 4 |
| write a function to find whether a string is palindrome or
not and how many palindrome this string contain? | | 1 |
| How the C program can be compiled? | HP | 6 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 3 |
| what is meant by c | | 4 |
| How can I make a program in c to print 'Hello' without
using semicolon in the code? | C-DAC | 3 |
| pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice) | Subex | 1 |
| What is function pointer and where we will use it | NetApp | 1 |
| compute the nth mumber in the fibonacci sequence? | TCS | 6 |
| why r u join this company? give solid resons. | Infosys | 3 |
| write a program to insert an element at the specified
position in the given array in c language | | 1 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 6 |
| WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? | IBM | 4 |
| |
| For more C Interview Questions Click Here |