| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 1 |
| plz answer.. a program that takes a string e.g. "345" and
returns integer 345 | | 2 |
| What is an anonymous union and where to apply that ? | HP | 1 |
| what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ?? | | 4 |
| write the program for prime numbers? | TCS | 7 |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| To what value do nonglobal variables default?
1) auto
2) register
3) static
| | 4 |
| What are advantages and disadvantages of recursive
calling ? | HP | 6 |
| pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice) | Subex | 1 |
| write a code for large nos multilication (upto 200 digits) | Persistent | 1 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 3 |
| Which of the following about automatic variables within a
function is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.
| TCS | 3 |
| why i join syntel? | Syntel | 11 |
| how to find out the reverse number of a digit if it is
input through the keyboard? | | 1 |
| post new interiew question and aptitude test papers | | 1 |
| program to find the second largest word in a paragraph
amongst all words that repeat more thn twice | iGate | 2 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| difference of two no's with out using - operator | | 4 |
| why java is called as a purely oops language. | | 2 |
| how many error occurs in C language ? | Wipro | 9 |
| |
| For more C Interview Questions Click Here |