| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can I allocate arrays or structures bigger than 64K? | | 4 |
| A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 2 |
| IS STRUCTURES CAN BE USED WITHIN AN ARRAY? | Caritor | 7 |
| What are the average number of comparisons required to sort
3 elements? | | 2 |
| Write a program to exchange two variaables without temp | Geometric-Software | 6 |
| 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 |
| write a c program to accept a given integer value and print
its value in words | | 3 |
| What is external and internal variables
What is dynamic memory allocation
what is storage classes in C | | 2 |
| char ch="{'H','I',0};printf("%s",ch);what is output | Accenture | 9 |
| main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how? | | 7 |
| pointer_variable=(typecasting
datatype*)malloc(sizeof(datatype));
This is the syntax for malloc?Please explain this,how it
work with an example? | Excel | 2 |
| how to implement stack work as a queue? | | 2 |
| plz answer.... write a program that reads line (using
getline) e.g."345", converts each line to an integer
using "atoi" and computes the average of all the numbers
read. also compute the standard deviation. | | 1 |
|
main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output?? | Ramco | 13 |
| Write a program to remove the C comments(/* */) and C++
comments(//) from a file.
The file should be declared in command line. | Subex | 2 |
| write a programe returns the number of times the character
appears in the string | | 1 |
| main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
| | 3 |
| Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
| TCS | 4 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| to find the program of matrix multiplication using arrays | | 2 |
| |
| For more C Interview Questions Click Here |