| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 29 |
| the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
| TCS | 4 |
| print ur name without using any semicolon in c/c++.... | | 6 |
| Print all numbers which has a certain digit in a certain
position
eg:
number=45687
1 number=4
2 number=5
etc | | 2 |
| Write a program for the following series:
1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms | Convex-Digital | 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 |
| pointer_variable=(typecasting
datatype*)malloc(sizeof(datatype));
This is the syntax for malloc?Please explain this,how it
work with an example? | Excel | 2 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| 1.what are local and global variables?
2.what is the scope of static variables?
3.what is the difference between static and global variables?
4.what are volatile variables?
5.what is the use of 'auto' keyword?
6.how do we make a global variable accessible across files?
Explain the extern keyword?
7.what is a function prototype?
8.what does keyword 'extern' mean in a function declaration?
| | 1 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| 7. Identify the correct argument for the function call
fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 8 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 1 |
| program for validity of triangle from 3 side | | 6 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. | Adobe | 4 |
| hi how to convert program from notepad to turboc editor can
u please help me | | 1 |
| difference of two no's with out using - operator | | 6 |
| will u give me old quesrion papers for aptitude for L & t
info tech? | L&T | 1 |
| CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION. | | 6 |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 11 |
| |
| For more C Interview Questions Click Here |