| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| without a terminator how can we print a message in a printf
() function. | NIIT | 5 |
| how to convert an char array to decimal array | | 3 |
| 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 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 4 |
| #define f(x)
main()
{
printf("\n%d",f(2+2));
} | | 3 |
| What's a "sequence point"? | | 2 |
| macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
| HCL | 8 |
| the operator for exponencation is
a.**
b.^
c.%
d.not available
| TCS | 4 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 5 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
} | | 3 |
| WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? | IBM | 5 |
| write the program for prime numbers? | TCS | 10 |
| 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 |
| plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a . | | 3 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| what is volatile in c language? | TCS | 1 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| What is C language Terminator? | TCS | 12 |
| |
| For more C Interview Questions Click Here |