| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| How many ways are there to swap two numbers without using
temporary variable? Give the each logic. | | 6 |
| What is the difference between null pointer and the void
pointer? | | 2 |
| hat is a pointer? | Assurgent | 3 |
| Write a program to give following output.....
*********
**** ****
*** ***
** **
* *
** **
*** ***
**** ****
********* | | 2 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 2 |
| What are the preprocessors? | HP | 6 |
| What is the real difference between arrays and pointers? | | 11 |
| Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
| TCS | 4 |
| write a c program to find biggest of 3 number without
relational operator? | Wipro | 2 |
| Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 3 |
| what is the different between if-else and switch statment
(other than syntax) | CTS | 9 |
| what is the difference between #include<> and #include”…”? | | 1 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| Program to write some contents into a file using file
operations with proper error messages. | | 1 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 2 |
| write a program to print the all 4digits numbers & whose
squares must me even numbers? | Virtusa | 2 |
| write a string copy function routine? | | 1 |
| #define d 10+10
main()
{
printf("%d",d*d);
} | | 3 |
| |
| For more C Interview Questions Click Here |