| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a C program to print 1 2 3 ... 100 without using
loops? | | 5 |
| give one ip, find out which contry | Google | 4 |
| What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"? | | 1 |
| what is the use of using linked list and array? | Infosys | 9 |
| What is alloca() and why is its use discouraged? | | 1 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| #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 |
| const char *
char * const
What is the differnce between the above tow?.
| TCS | 5 |
| How would you sort a linked list? | | 1 |
| What is macro? | IBM | 4 |
| what is pointer | TCS | 1 |
| 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 |
| wap in c to accept n number display the highest and lowest
value | | 2 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| 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 |
| C,c++, Java is all are structural oriented or procedure
oriented language..? | | 3 |
| pointer_variable=(typecasting
datatype*)malloc(sizeof(datatype));
This is the syntax for malloc?Please explain this,how it
work with an example? | Excel | 2 |
| i want to know aptitude questions,technical questions | | 2 |
| If 4 digits number is input through the keyboard, Write a
program to calculate sum of its 1st & 4th digit. | | 4 |
| To what value do nonglobal variables default?
1) auto
2) register
3) static
| | 4 |
| |
| For more C Interview Questions Click Here |