| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| dynamically allocate memory for linear array of n
integers,store some elements in it and find some of them | | 1 |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 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 |
| what's the return value of malloc() | | 8 |
| program for comparing 2 strings without strcmp() | | 3 |
| what is the other ways to find a logic to print whether a
number is an even or odd wit out using % symbol??????? i
know three different ways to print it. so i need any other
different logic>>>>> | TCS | 3 |
| User define function contain thier own address or not. | | 2 |
| Is reference used in C? | | 1 |
| please give me answer with details
#include<stdio.h>
main()
{
int i=1;
i=(++i)*(++i)*(++i);
printf("%d",i);
getch();
} | | 3 |
| Give me basis knowledge of c , c++... | | 4 |
| Is main() function predfined or userdefined? | | 7 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| Write a program to remove the C comments(/* */) and C++
comments(//) from a file.
The file should be declared in command line. | Subex | 2 |
| int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i);
| HCL | 5 |
| what are the languages used in c#? | Infosys | 1 |
| what is output of the following statetment?Printf(“%x”,
-1<<4); ? | | 3 |
| Find string palindrome 10marks
| Honeywell | 5 |
| write an algorithm which can find the largest number among
the given list using binary search ...............
this was asked in the interview | Satyam | 2 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| f(*p)
{
p=(char *)malloc(6);
p="hello";
return;
}
main()
{
char *p="bye";
f(p);
printf("%s",p);
}
what is the o/p?
| Hughes | 4 |
| |
| For more C Interview Questions Click Here |