| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
| Verifone | 14 |
| What is volatile in c language? | HCL | 1 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 5 |
| what is difference between c and c++ | | 3 |
| How can I read a directory in a C program? | Wipro | 1 |
| 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 |
| program for comparing 2 strings without strcmp() | | 3 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| Write a program to generate prime factors of a given integer? | | 1 |
| what is the use of #pragma pack, wer it is used? | Wipro | 1 |
| Design a program using an array that lists even numbers and
odd numbers separately from the 12 numbers supplied by a user. | | 7 |
| write a program to sort the elements in a given array in c
language | | 2 |
| 1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<= | Siemens | 10 |
| Why does not use getgh(); and <conio.h> in c language. | Elofic | 2 |
| Write a program to write a given string in maximum
possibilities?
i.e str[5]="reddy";
i.e we can write this string in 120 ways
for that write a program | Subex | 3 |
| what is differnence b/w macro & functions | | 1 |
| write a program that print itself even if the source file is
deleted? | | 1 |
| Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed. | Scientific-Atlanta | 2 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| how to do in place reversal of a linked list(singly or
doubly)? | | 2 |
| |
| For more C Interview Questions Click Here |