| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the use of #pragma pack, wer it is used? | Wipro | 1 |
| Write a program to generate prime factors of a given integer? | | 3 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| How can we see the Expanded source code and compiled code
for our source program in C? | | 1 |
| which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
| TCS | 5 |
| what is the difference between strcpy() and memcpy() function? | | 1 |
| how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a.p=p+x;
q=q+y
b.p=p+xq=q+y
c.p=p+xq;
q=q+y
d.p=p+x/q=q+y
| TCS | 3 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| to find out the reverse digit of a given number | Infosys | 5 |
| How do I initialize a pointer to a function? | | 2 |
| int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
| Verifone | 14 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| How can I convert integers to binary or hexadecimal? | | 2 |
| main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
} | | 5 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| Program to write some contents into a file using file
operations with proper error messages. | | 1 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| two progs are given. one starts counting frm 0 to MAX and
the other stars frm MAX to 0. which one executes fast.
| Verifone | 5 |
| write a function for strtok()?? | Verifone | 1 |
| what is compiler | | 5 |
| |
| For more C Interview Questions Click Here |