| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 11 |
| write a c program to find biggest of 3 number without
relational operator? | Wipro | 2 |
| Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
| Accenture | 3 |
| main()
{
printf("hello%d",print("QUARK test?"));
}
| | 4 |
| program for comparing 2 strings without strcmp() | | 3 |
| how many header file is in C language ? | | 14 |
| True or false: If you continuously increment a variable, it
will become negative?
1) True
2) False
3) It depends on the variable type
| | 5 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| write an interactive program to generate the divisors of a
given integer. | TCS | 4 |
| what is use of loop? | Infosys | 6 |
| Give me basis knowledge of c , c++... | | 4 |
| 5. distance conversion:
Convert a distance from miles to kilometers .there are 5280
feets per mile,12 inches per foot .2.54 centimeters per
inch and 100000centimeters per kilometer
| | 1 |
| what is the difference between c and java? | | 1 |
|
I need to take a sentence from input and sort the words
alphabetically using the C programming language.
Note: This is C not C++.
qsort and strtok not allowed | | 4 |
| How many ways are there to swap two numbers without using
temporary variable? Give the each logic. | | 6 |
| what is the output of the following program?
#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
} | | 4 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 2 |
| int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
| Verifone | 14 |
| create an SINGLE LINKED LISTS and reverse the data in the
lists completely | | 3 |
| whether itis a structured language? | Microsoft | 1 |
| |
| For more C Interview Questions Click Here |