| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| simple c program for 12345 convert 54321 with out using string | | 5 |
| Whats wrong with the following function
char *string()
{
char *text[20];
strcpy(text,"Hello world");
return text;
} | Qualcomm | 3 |
| 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 |
| related to rdbms query . | | 1 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| #include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output? | Ramco | 5 |
| Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
| Mascot | 3 |
| i want to know aptitude questions,technical questions | | 2 |
| how the size of an integer is decided?
- is it based on processor or compiler or OS? | nvidia | 16 |
| Why does not use getgh(); and <conio.h> in c language. | Elofic | 2 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| program to find middle element of linklist? | Huawei | 1 |
| How to implement variable argument functions ? | HP | 1 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| ABCDCBA
ABC CBA
AB BA
A A | | 1 |
| What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value | Accenture | 3 |
| I have an array of 100 elements, each of which is a random
integer. I want to know which of the elements:
a) are multiples of 2
b) are multiples of 2 AND 5
c) have a remainder of 3 when divided by 7 | | 1 |
| |
| For more C Interview Questions Click Here |