| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| find the output of the following program
main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}
| TCS | 4 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 6 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| What is a symbolic constant? | | 1 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| Total of how many functions are available in c? | | 2 |
| what is the definition of storage classes? | Wipro | 2 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| number 2 plssssss help !!....using array.. turbo c..
create a program that will accept a number and determine if
it is a happy number or an unhappy number..
example:
enter a number : 7
7*7=49
then 4 and 9
4*4 and 9*9== 16 + 18 gives you 97
then 9 and 7
9*9 and 7*7 == 81 + 49 gives you 130
then 1 and 3
1*1 and 3*3 == 1 + 9 gives you 10
1*1 gives you 1
sample output:
7= 49= 16+81= 97= 81+49=130 =1+9=10 =1
"7 is a happy number"
. if the last number is 2 then the number being inputed is
not a happy number.
| | 2 |
| What are .h files and what should I put in them? | | 3 |
| what is difference b/w extern & volatile variable?? | Teleca | 2 |
| which types of data structure will i use to convert infix to
post fix??? | IIT | 3 |
| how to find that no is int or float? | | 5 |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
| what is array? | HCL | 22 |
| While(1)
{
}
when this loop get terminate is it a infinite loop? | | 4 |
| without a terminator how can we print a message in a printf
() function. | NIIT | 5 |
| What is the real difference between arrays and pointers? | | 11 |
| n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
| Wipro | 4 |
| can we access one file to one directory? | | 1 |
| |
| For more C Interview Questions Click Here |