| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a c program to calculate the income tax of the
employees in an organization where the conditions are given as.
(I.T. = 0 if income <100000
I.T = 10% if income _< 200000
it = 20% if income >_ 200000) | | 1 |
| What is Heap? | | 3 |
| 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 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
| CitiGroup | 8 |
| will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); | | 3 |
| Hai friends im a i year student. i want to develop my
knowledge in the field of TSR in c. How I'm Improve ? | | 1 |
| how do u find out the number of 1's in the binary
representation of a decimal number without converting it
into binary(i mean without dividing by 2 and finding out
the remainder)? three lines of c code s there it
seems...can anyone help | | 5 |
| How can we open a file in Binary mode and Text mode?what is
the difference? | PanTerra | 1 |
| can we access one file to one directory? | | 1 |
| write a program to sum of its digit with using control
structure or with out using loop. for ex: let the number is
25634 then answer will be=2+5+6+3+4=20 | | 3 |
| main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
} | | 4 |
| how can i print "hello".please consider inverted commas as
well.i want to print on console: "hello" | | 2 |
| Reverse the part of the number which is present from
position i to j. Print the new number.[without using the array]
eg:
num=789876
i=2
j=5
778986 | | 2 |
| what is a void pointer? | | 2 |
| How can I find out how much memory is available? | Persistent | 1 |
| 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 | 13 |
| we all know about the function overloading concept used in
C++ and we all learnt abt that.... but that concept is
already came in C in a very smaller propotion ... my
question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION
OVERLOADING IS USED in C language????????????? | Google | 2 |
| How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs. | NetApp | 12 |
| i want the code for printing the output as follows
4 4
3 3
2 2
1 1
0
1 1
2 2
3 3
4 4 | | 1 |
| what is use of loop? | Infosys | 9 |
| |
| For more C Interview Questions Click Here |