| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the real difference between arrays and pointers? | | 11 |
| what is the stackpointer | | 2 |
| Software Interview Questions | CAT | 1 |
| Give the output for the following program.
#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %d\n",x,y);
}
| ADITI | 1 |
| What are the preprocessors? | HP | 6 |
| 1. Write a c pgm to print 1 to 100 without using loops.
2. Write a c pgm for leap year
3. Write a c pgm fibbonacci series,factorial
4. Write a c pgm count no of lines , blanks, tabs in a
para(File concept)
5. Write a c pgm to print the letter as per given condition
i.e.. if u give 4
out put should b
4 4 4 4
4 4 4 4
4 4 4 4
4 4 4 4
6.how do get the o/p in number from 1 to 100 in the screen
without using control statement?
7. who do u print the word "hello world" without using
"printf" statement?
8. write sql program to get the detail of student in a
class?
Definitions:
structure
union
arrays
linkedlist
macros
directives
difference b/w
pre processorsDiffrence:
1.Constructors and destructors
2.Structure and Union
3.Array and Lists
4.pre processor...
5. Privillages in C++
6.structure and union
7.break and continue
8.while and dowhile Pgm.. | | 1 |
| what are the compilation steps?
( i want inside the compiler ) | | 1 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| What ios diff. Between %e & %f? | Honeywell | 1 |
| what is difference between overriding and overloading? | | 1 |
| what is meant by the "equivalence of pointers and arrays" in
C? | Satyam | 3 |
| consider the following C code
main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
the final value of x is
| TCS | 3 |
| Explain following declaration
int *P(void);
and
int (*p)(char *a);
| | 2 |
| Name the language in which the compiler of "c" in written? | Bajaj | 1 |
| What is false about the following
A compound statement is
a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.
| TCS | 1 |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 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 |
| What does a run-time "null pointer assignment" error mean? | | 2 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4
1) Quick Sort
2) Bubble Sort
3) Merge Sort
| | 5 |
| |
| For more C Interview Questions Click Here |