| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the definition of storage classes? | Wipro | 2 |
| How can I set an array's size at run time? | | 7 |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| write a function which accept two numbers from main() and
interchange them using pointers? | | 3 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
| Motorola | 2 |
| write a program to swap bits in a character and return the value
prototype of function
char fun (char a, charb flag c)
where fun returns a char, char a is a the value char b is
the bit to be changed and flag c is the bit value
for eg: x=fun(45,7,0)
since 45 is 0010 0101
and ow x should contain the value 65 (0110 0101) | Bosch | 1 |
| how many keywords do C compile? | Microsoft | 2 |
| 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 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| write a program for odd numbers? | | 6 |
| find largest element in array w/o using sorting techniques. | Zycus-Infotech | 2 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| post new interiew question and aptitude test papers | | 1 |
| 1.what are local and global variables?
2.what is the scope of static variables?
3.what is the difference between static and global variables?
4.what are volatile variables?
5.what is the use of 'auto' keyword?
6.how do we make a global variable accessible across files?
Explain the extern keyword?
7.what is a function prototype?
8.what does keyword 'extern' mean in a function declaration?
| | 1 |
| write the program for maximum of the following numbers?
122,198,290,71,143,325,98 | | 4 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| can anyone please tell me wat is backlogs... i was looking
for the job openings where i read this.. eligibility
criteria minimum 70% in degree without backlogs. is that
arrear.. if so is it standing arrear or history of
arrears... please help me... | | 4 |
| |
| For more C Interview Questions Click Here |