| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Is main() function predfined or userdefined? | | 7 |
| for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer???? | | 6 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 2 |
| YBJBU6 | | 1 |
| int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
| Mascot | 9 |
| How does free() know how many bytes to free? | | 5 |
| In scanf h is used for | BFL | 2 |
| While(1)
{
}
when this loop get terminate is it a infinite loop? | | 4 |
| How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs. | NetApp | 12 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | | 1 |
| code for copying two strings with out strcpy() function. | | 5 |
| difference between function & structure | Verizon | 5 |
| c program to add and delete an element from circular queue
using array | | 1 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code? | Ramco | 4 |
| What does the message "warning: macro replacement within a
string literal" mean? | | 1 |
| 34.what are bitwise shift operators?
35.what are bit fields? What is the use of bit fields in a
structure declaration?
36.what is the size of an integer variable?
37.what are the files which are automatically opened when a
c file is executed?
38.what is the little endian and big endian?
39.what is the use of fflush() function?
40.what is the difference between exit() and _exit() functions?
41.where does malloc() function get the memory?
42.what is the difference between malloc() and calloc()
function?
43.what is the difference between postfix and prefix unary
increment operators? | | 2 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| what is the associativity of bitwise OR operator? | | 1 |
| write a C code To reverse a linked list | Motorola | 2 |
| what does data structure mean? | | 7 |
| |
| For more C Interview Questions Click Here |