| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
} | Satyam | 3 |
| Which of the following about the C comments is incorrect ?
a.commentscan go over multiple lines
b.comments can start any where in the line
c.a line can contain comments with out any language statements
d.comments can occur within comments
| TCS | 6 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| 1
232
34543
4567654
can anyone tell me how to slove this c question | | 3 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| How to swap two values using a single variable ?
condition: Not to use Array and Pointer ? | | 4 |
| How can I convert integers to binary or hexadecimal? | | 2 |
| 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 memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| In scanf h is used for | BFL | 2 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| Why is conio.h not required when we save a file as .c and
use clrscr() or getch() ? | | 2 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| what type of language is C? | Microsoft | 2 |
| what is real time system?what is the differance between hard
and soft real time systems | | 2 |
| why division operator not work in case of float constant? | | 1 |
| User define function contain thier own address or not. | | 2 |
| let's take a code
struct FAQ
{
int a;
char b;
float c;
double d;
int a[10];
}*temp;
now explain me how the memory will be allocated for the
structure FAQ and what address will be in the structure
pointer (temp).................... | | 7 |
| What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
} | Qualcomm | 3 |
| |
| For more C Interview Questions Click Here |