| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
| WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
| | 6 |
| what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
} | Infosys | 14 |
| #define MAX(x,y) (x) > (y) ? (x) : (y)
main()
{
int i = 10, j = 5, k = 0;
k = MAX(i++, ++j);
printf("%d %d %d", i,j,k);
}
what will the values of i , j and k?
}
| NDS | 9 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| How can draw a box in cprogram without using graphics.h
header file & using only one printf(); ? | NIIT | 1 |
| What's the difference between calloc() and malloc()? | | 3 |
| Write a program to print all the prime numbers with in the
given range | ABC | 1 |
| how to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
| HCL | 6 |
| helllo sir
give me some information of the basic information the
c as printf ,scanf , %d ,%f and why is the main use of
these. | | 3 |
| what is the difference between entry control and exit
control statement? | | 2 |
| what are the various memory handling mechanisms in C ? | HP | 3 |
| What compilation do? | Geometric-Software | 7 |
| write an interactive program to generate the divisors of a
given integer. | TCS | 4 |
| what does " calloc" do? | Cadence | 6 |
| How can I find out how much memory is available? | Persistent | 1 |
| How to receive strings with spaces in scanf() | | 4 |
| #include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean? | Intel | 4 |
| why r u join this company? give solid resons. | Infosys | 7 |
| |
| For more C Interview Questions Click Here |