| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| which operator having highest precedence?
a.)+ b.)++ c.)= d.)%
| | 3 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| Is it possible to run a c program without using main?If yes
HOW?? | Wipro | 10 |
| what is available in C language but not in C++? | | 1 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output? | Ramco | 4 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 5 |
| given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
| TCS | 5 |
| What is false about the following
A compound statement is
a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.
| TCS | 1 |
| 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's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?
| | 3 |
| write a program for size of a data type without using
sizeof() operator? | | 7 |
| without using arithmatic operator solve which number is
greater?????????? | | 1 |
| What compilation do? | Geometric-Software | 7 |
| any string of bits of length 'n' represents a unique non-
negative integer between.............? | | 2 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| the operator for exponencation is
a.**
b.^
c.%
d.not available
| TCS | 4 |
| write a c programs to do multiplication of two numbers with
out using arithmatic operator ?????????? | TCS | 4 |
| |
| For more C Interview Questions Click Here |