| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| difference between memcpy and strcpy | | 1 |
| what are the static variables
| HCL | 7 |
| Reverse the part of the number which is present from
position i to j. Print the new number.[without using the array]
eg:
num=789876
i=2
j=5
778986 | | 2 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| Average of a couple 10 years ago was 25. The average
remains same after having a child and twins after 3 years.
What is the present age of the first child | IBM | 9 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 1 |
| What is the difference b/w main() in C language and main()
in C++. | | 6 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| How does free() know how many bytes to free? | | 5 |
| how to find the size of the data type like int,float
without using the sizeof operator? | | 7 |
| to find out the reverse digit of a given number | Infosys | 5 |
| who did come first hen or agg | Infosys | 12 |
| c program to add and delete an element from circular queue
using array | | 1 |
| Which of these statements are false w.r.t File Functions?
i)fputs() ii)fdopen() iii)fgetpos() iv)ferror()
A)ii B)i,ii C)iii D)iv
| Accenture | 5 |
| What is the memory allocated by the following definition ?
int (*x)[10];
| ADITI | 3 |
| What are the languages are portable and platform
independent?Why they are like that? | Excel | 1 |
| 2)#include<iostream.h>
main()
{
printf("Hello World");
}
the program prints Hello World without changing main() the
o/p should
be
intialisation
Hello World
Desruct
the changes should be
a)iostream operator<<(iostream os, char*s)
os<<'intialisation'<<(Hello World)<<Destruct
b) c) d)none of the above | Siemens | 4 |
| What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value | Accenture | 3 |
| |
| For more C Interview Questions Click Here |