| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to find string length wihtout using c function? | | 4 |
| write a own function for strstr | LG-Soft | 1 |
| write a c program to check weather a particluar bit is set
or not? | IBM | 4 |
| main()
{
float a=3.2e40;
printf("%d",a);
} | Satyam | 5 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 13 |
| what is use#in c | | 3 |
| write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc) | | 4 |
| why we shiuld use main keyword in C | | 5 |
| what is the differance between pass by reference and pass
by value. | Infosys | 4 |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| Which of the following data structures is on average the
fastest for retrieving data:
1) Binary Tree
2) Hash Table
3) Stack
| | 3 |
| fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}
| HCL | 3 |
| What is sparse file? | | 1 |
| Which of the following about automatic variables within a
function is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.
| TCS | 3 |
| what is array? | | 6 |
| What is the Difference between Macro and ordinary
definition? | Motorola | 2 |
| What is volatile in c language? | HCL | 1 |
| Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks. | Google | 3 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| |
| For more C Interview Questions Click Here |