| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| main()
{
printf(5+"Vidyarthi Computers");
} | | 6 |
| How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs. | NetApp | 12 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| 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 |
| explain about storage of union elements. | Bosch | 2 |
| What is the output of the following program
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
} | ADITI | 5 |
| how to find a 5th bit is set in c program | IBM | 3 |
| 1
232
34543
4567654
can anyone tell me how to slove this c question | | 3 |
| what is the advantage of function pointer | TCS | 10 |
| What is structure padding & expalain wid example
what is bit wise structure? | | 1 |
| What is the difference between constant pointer and pointer
to a constant. Give examples. | TCS | 4 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| wats SIZE_T meant for? | | 1 |
| 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 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output? | Ramco | 4 |
| Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen) | NetApp | 1 |
| how to implement stack work as a queue? | | 2 |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| who did come first hen or agg | Infosys | 12 |
| |
| For more C Interview Questions Click Here |