| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to search for an element in a given array.
If the array was found then display its position otherwise
display appropriate message in c language | | 1 |
| how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--); | RMSI | 13 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 1 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| Which of the following are valid "include" formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include [file.h] and #include "file.h"
D)#include <file.h> and #include "file.h"
| Accenture | 12 |
| Find Error if any in below code, Justify ur answer:
struct xx
{
int a;
struct yy
{
char c;
struct xx* p;
}
struct yy* q;
} | NDS | 2 |
| YBJBU6 | | 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 |
| What does extern mean in a function declaration? | | 2 |
| what is the difference between #include<stdio.h> and
#include"stdio.h" ? | TCS | 4 |
| how can i make a program with this kind of output..
Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0 | Wipro | 2 |
| write a own function to compare two strings with out using
stringcomparition function? | LG-Soft | 3 |
| Given an array of characters which form a sentence of
words, give an efficient algorithm to reverse the order of
the words (not characters) in it? | | 2 |
| what is the use of using linked list and array? | Infosys | 8 |
| How do I access command-line arguments? | Wipro | 2 |
| post new interiew question and aptitude test papers | | 1 |
| write a c programs to do multiplication of two numbers with
out using arithmatic operator ?????????? | TCS | 2 |
| What's the difference between a linked list and an array?
| | 8 |
| difference between function & structure | Verizon | 3 |
| What is the real difference between arrays and pointers? | | 5 |
| |
| For more C Interview Questions Click Here |