| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a c program to print the values in words
eg:- 143 written it has (one hundred and forty three)&
104, 114 are also written words | | 1 |
| int main()
{
int *p=new int;
*p=10;
del p;
cout<<*p;
*p= 60;
cout<<*p;
}
what will be the output & why? | TCS | 4 |
| Can we access RAM?
How? Whats the range of access?
Similarly What are other hardware we can access? | | 1 |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 12 |
| why r u join this company? give solid resons. | Infosys | 7 |
| In the following control structure which is faster?
1.Switch
2.If-else
and which consumes more memory? | | 4 |
| Is it possible to create recycle bin in mobiles? | | 2 |
| dynamically allocate memory for linear array of n
integers,store some elements in it and find some of them | | 1 |
| const char *
char * const
What is the differnce between the above tow?.
| TCS | 5 |
| Reverse the part of the number which is present from
position i to j. Print the new number.[without using the array]
eg:
num=789876
i=2
j=5
778986 | | 2 |
| pgm in c to reverse string by word using array(god is love
becomes love is god)
(no additional array can used,space is only delimiter
between words ) | Persistent | 1 |
| Design a program using an array that lists even numbers and
odd numbers separately from the 12 numbers supplied by a user. | | 7 |
| program to find middle element of linklist? | Huawei | 1 |
| what is difference between array of characters and string | Accenture | 10 |
| study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above | Accenture | 13 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| How do you write a program which produces its own source
code as its output? | | 2 |
| what information does the header files contain? | BSNL | 5 |
| int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15
| Wipro | 8 |
| Write a program to generate prime factors of a given integer? | | 3 |
| |
| For more C Interview Questions Click Here |