| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the relation between # and include<stdio.h> | HCL | 3 |
| what is the differnce between AF_INET and PF_INET? | Wipro | 2 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 4 |
| Suppose I want to write a function that takes a generic
pointer as an argument and I want to simulate passing it by
reference. Can I give the formal parameter type void **, and
do something like this?
void f(void **);
double *dp;
f((void **)&dp);
| | 1 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| What is the diffences between Windows XP and Windows Visa
| Aricent | 1 |
| what are the difference between ANSI C and Let Us c and Turbo C | LG-Soft | 1 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| #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 the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa.. | Aricent | 4 |
| how to find sum of digits in C?
| CTS | 10 |
| What compilation do? | Geometric-Software | 7 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| what is the function of .h in #include<stdio.h> in c ? | IBM | 9 |
| write a program to insert an element at the specified
position in the given array in c language | IBM | 2 |
| How do you write a program which produces its own source
code as its output? | | 3 |
| What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
| TCS | 10 |
| main()
{
int i=400,j=300;
printf("%d..%d");
}
| ME | 8 |
| |
| For more C Interview Questions Click Here |