| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can I access memory located at a certain address? | | 2 |
| how to generate the length of a string without using len
funtion? | | 3 |
| what is data structure
| | 4 |
| How does free() know how many bytes to free? | | 5 |
| what does the following code do?
fn(int n,int p,int r)
{
static int a=p;
switch(n){
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;
}
}
a.computes simple interest for one year
b.computes amount on compound interest for 1 to 4 years
c.computes simple interest for four year
d.computes compound interst for 1 year
| TCS | 4 |
| how to find the binary of a number? | Infosys | 5 |
| what is differnence b/w macro & functions | | 1 |
| Software Interview Questions | CAT | 1 |
| What's the best way to declare and define global variables? | | 5 |
| What is the main differences between C and Embedded C? | | 2 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| palindrome for strings and numbers----Can anybody do the
prog? | TCS | 6 |
| what are the various memory handling mechanisms in C ? | HP | 3 |
| How the processor registers can be used in C ? | HP | 4 |
| What compilation do? | Geometric-Software | 7 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| In scanf h is used for | BFL | 2 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| what is self refrential structure | HCL | 2 |
| |
| For more C Interview Questions Click Here |