| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| wap in c to accept a number display the total count of digit | | 4 |
| #define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
| NDS | 1 |
| Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4
1) Quick Sort
2) Bubble Sort
3) Merge Sort
| | 5 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| C,c++, Java is all are structural oriented or procedure
oriented language..? | | 3 |
| difference between my-strcpy and strcpy ? | Geometric-Software | 3 |
| size maximum allocated by calloc() | DELL | 1 |
| Find Error if any in below code, Justify ur answer:
struct xx
{
int a;
struct yy
{
char c;
struct xx* p;
}
struct yy* q;
} | NDS | 3 |
| program to find middle element of linklist? | Huawei | 1 |
| Read N characters in to an array . Use functions to do all
problems and pass the address of array to function.
1. Print only the alphabets . If in upper case print in
lower case vice versa. | | 1 |
| Write a program to interchange two variables without using
the third variable? | Accenture | 11 |
| How can draw a box in cprogram without using graphics.h
header file & using only one printf(); ? | NIIT | 1 |
| Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
| ME | 3 |
| Why preprocessor should come before source code?
| | 2 |
| what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
} | | 10 |
| whether itis a structured language? | Microsoft | 1 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| How can I make a program in c to print 'Hello' without
using semicolon in the code? | C-DAC | 5 |
| Write a C program to print 1 2 3 ... 100 without using
loops? | | 5 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| |
| For more C Interview Questions Click Here |