| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| wats the diference btwen constant pointer and pointer to a
constant.pls give examples. | | 6 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 1 |
| What is the memory allocated by the following definition ?
int (*x)[10];
| ADITI | 3 |
| main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
} | TCS | 6 |
| Write a program for the following series?
1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321
1234567890987654321
123456789010987654321
12345678901210987654321
1234567890123210987654321
.........1234321............
..........123454321............
..........12345654321............
7
8
9
0
1
Pls............? | | 2 |
| Given an unsigned integer, find if the number is power of 2? | | 4 |
| What is macro? | IBM | 4 |
| what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ?? | | 4 |
| which operator having highest precedence?
a.)+ b.)++ c.)= d.)%
| | 3 |
| Why does not use getgh(); and <conio.h> in c language. | Elofic | 2 |
| Toggle nth bit in a given integer - num | Qualcomm | 2 |
| to find the program of matrix multiplication using arrays | | 2 |
| How to swap two values using a single variable ?
condition: Not to use Array and Pointer ? | | 4 |
| why we shiuld use main keyword in C | | 5 |
| Write a program to find the smallest and largest element in
a given array in c language | Microsoft | 3 |
| main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
| ME | 3 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
| Mascot | 4 |
| Average of a couple 10 years ago was 25. The average
remains same after having a child and twins after 3 years.
What is the present age of the first child | IBM | 9 |
| |
| For more C Interview Questions Click Here |