| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Program to find the value of e raised to power x using while
loop | N-Tech | 3 |
| How can we see the Expanded source code and compiled code
for our source program in C? | | 1 |
| what does " calloc" do? | Cadence | 6 |
| void main(int argc,char *argv[],char *env[])
{
int i;
for(i=1;i<argc;i++)
printf("%s",env[i]);
} | | 2 |
| What's wrong with "char *p = malloc(10);" ? | | 4 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| 7. Identify the correct argument for the function call
fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 8 |
| what is link list?
| | 2 |
| what is c?
| Tech-Mahindra | 5 |
| can we write a program in c for printf and scanf without
using header file stdio.h | | 1 |
| what is the use of fflush() function? | | 1 |
| What is RAM memory? and What is ROM?Who designed one is
temparary and another is permanent?why they designed like
that?By using far pointer which type data(whether
hexadecimal)we can access? | Excel | 1 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| 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 |
| what are the general concepts of c and c++ | | 1 |
| How can I convert integers to binary or hexadecimal? | | 2 |
| related to rdbms query . | | 1 |
| how to implement stack work as a queue? | | 2 |
| what is a function pointer and how all to declare ,define
and implement it ??? | Honeywell | 3 |
| |
| For more C Interview Questions Click Here |