| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| sir,
i cannot find the way how to write aprogram by using
array on queue | IISIT | 1 |
| Hai why 'c' is the middle language | | 2 |
| program to find a smallest number in an array | Microsoft | 5 |
| program for comparing 2 strings without strcmp() | | 3 |
| Why preprocessor should come before source code?
| | 2 |
| what is the defrenece between structure and union | | 5 |
| what information does the header files contain? | BSNL | 5 |
| Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4
1) Quick Sort
2) Bubble Sort
3) Merge Sort
| | 5 |
| without using arithmatic operator solve which number is
greater?????????? | | 1 |
| # define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
| TCS | 5 |
| array contains zeros and ones as elements.we need to bring
zeros one side and one other side in single parse.
ex:a[]={0,0,1,0,1,1,0,0}
o/p={0,0,0,0,0,1,1,1} | Motorola | 7 |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| the factorial of non-negative integer n is written n! and
is defined as follows:
n!=n*(n-1)*(n-2)........1(for values of n greater than or
equal to 1 and
n!=1(for n=0)
Perform the following
1.write a c program that reads a non-negative integer and
computes and prints its factorial.
2. write a C program that estimates the value of the
mathematical constant e by using the formula:
e=1+1/!+1/2!+1/3!+....
3. write a c program the computes the value ex by using the
formula
ex=1+x/1!+xsquare/2!+xcube/3!+....
| Ignou | 2 |
| What is an volatile variable? | HP | 12 |
| which one low Priority in c?
a)=,b)++,c)==,d)+ | | 8 |
| Difference between Class and Struct.
| Motorola | 6 |
| what is the difference b/w compiler and debugger? | Assurgent | 1 |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| |
| For more C Interview Questions Click Here |