| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Which of the Following will define a type NODE that is a
node in a Linked list?
A)struct node {NODE*next;int x;};type def struct node NODE;
B)typedef struct NODE {struct NODE *next;int x;};
C)typedef struct NODE {NODE *next;int x;};
D)typedef struct {NODE *next;int x;}NODE;
| Accenture | 4 |
| if the address of a[1,1] and a[2,1] are 1000 and 1010
respectively and each occupies 2 bytes then the array has
been stored in what order? | | 3 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| what are brk, sbrk?
| Oracle | 1 |
| What is alloca() and why is its use discouraged? | | 1 |
|
#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}
output? | Ramco | 5 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 6 |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| how to print value of e(exp1)up to required no of digits
after decimal? | | 1 |
| What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa.. | Aricent | 4 |
| Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass. | Microsoft | 6 |
| What are bit fields? What is their use? | Adobe | 1 |
| why TCS selected more student in the software field from
all institution. | TCS | 3 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| IS STRUCTURES CAN BE USED WITHIN AN ARRAY? | Caritor | 7 |
| is compiler do read the data line by line or not.
?? | LG-Soft | 3 |
| Program to display given 3 integers in ascending order | N-Tech | 1 |
| what is array? | | 6 |
| Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 3 |
| |
| For more C Interview Questions Click Here |