| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
| TCS | 4 |
| why r u join this company? give solid resons. | Infosys | 7 |
| Is main() function predfined or userdefined? | | 7 |
| main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
} | | 5 |
| How can I call a function, given its name as a string? | ABC-Telecom | 2 |
| how many keywords do C compile? | Microsoft | 2 |
| write a program to insert an element at the specified
position in the given array in c language | IBM | 2 |
| Which of the following are valid "include" formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include [file.h] and #include "file.h"
D)#include <file.h> and #include "file.h"
| Accenture | 14 |
| what is the benefit of c30 | | 1 |
| #include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean? | Intel | 4 |
| fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}
| HCL | 3 |
| Give the output for the following program.
#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d\n",x,y);
}
| ADITI | 1 |
| what is disadvantage of pointer in C | Tech-Mahindra | 5 |
| how to do in place reversal of a linked list(singly or
doubly)? | | 2 |
| what does " calloc" do? | Cadence | 6 |
| WAP to accept rollno,course name & marks of a student &
display grade if total marks is above 200? | | 2 |
| Program to trim a given character from a string. | NetApp | 4 |
| 4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.
| Wipro | 1 |
| plz answer.... write a program that reads line (using
getline) e.g."345", converts each line to an integer
using "atoi" and computes the average of all the numbers
read. also compute the standard deviation. | | 1 |
| Write a programme to find even numbers without using any
conditional statement? | Infosys | 3 |
| |
| For more C Interview Questions Click Here |