| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is true about the following
C Functions
a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.
| TCS | 7 |
| Total of how many functions are available in c? | | 2 |
| How would you write qsort? | | 1 |
| how to find out the union of two character arrays? | | 1 |
| what is op?
for(c=0;c=1000;c++)
printf("%c",c); | Trigent | 18 |
| CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION. | | 6 |
| char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ?
(0, ASCII 0, I,unpredictable)
| Mascot | 6 |
| how to find string length wihtout using c function? | | 4 |
| write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer) | Wipro | 7 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| a C prog to swap 2 no.s without using variables just an
array? | TCS | 4 |
| what will happen if you free a pointer twice after
allocating memory dynamically ? | Novell | 2 |
| How to access or modify the const variable in c ? | HP | 4 |
| Write a program to compute the following
1!+2!+...n! | | 3 |
| How can I call a function, given its name as a string? | ABC-Telecom | 2 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
| ME | 3 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| program to find which character is occured more times in a
string and how many times it has occured? for example in
the sentence "i love india" the output should be i & 3. | | 3 |
| f(x,y,z)
{
y = y+1;
z = z+x;
}
main()
{
int a,b;
a = 2
b = 2;
f(a+b,a,a);
print a;
}
what is the value of 'a' printed | | 4 |
| |
| For more C Interview Questions Click Here |