| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| Give a fast way to multiply a number by 7 | Microsoft | 8 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | CTS | 2 |
| 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 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| What is structure packing ? | HP | 1 |
| how to add numbers without using arithmetic operators. | TCS | 10 |
| Print the foll in C...eg when n=5 the o/p must b
+ +
+ + + +
+ + + + +
+ + + +
+ + | | 1 |
| wt is d full form of c | Wipro | 1 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 6 |
| sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2;
Find the value of x? | Subex | 2 |
| how memory store byte
| Huawei | 3 |
| what does exit() do? | Cadence | 3 |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | TCS | 5 |
| what is the hexidecimal number of 4100? | Google | 14 |
| Write a program to write a given string in maximum
possibilities?
i.e str[5]="reddy";
i.e we can write this string in 120 ways
for that write a program | Subex | 3 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation. | Global-Edge | 11 |
| 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 |
| |
| For more C Interview Questions Click Here |