| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Function to find the given number is a power of 2 or not? | Motorola | 12 |
| what is out put of the following code?
#include
class Base
{
Base()
{
cout<<"constructor base";
}
~Base()
{
cout<<"destructor base";
}
}
class Derived:public Base
{
Derived()
{
cout<<"constructor derived";
}
~Derived()
{
cout<<"destructor derived";
}
}
void main()
{
Base *var=new Derived();
delete var;
}
| Honeywell | 2 |
| what are two categories of clint-server application
development ? | | 1 |
| what is pointer ? | Kernex-Micro-Systems | 7 |
| What's the best way to declare and define global variables? | | 5 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | | 1 |
| how to print "hai" in c? | | 10 |
| n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
| Wipro | 4 |
| What are bit fields? What is their use? | Adobe | 1 |
| 12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
| Accenture | 4 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| Can we include one C program into another C program if yes how? | Infosys | 4 |
| Sir i want e-notes of C languge of BAlaguruswami book i.e
scanned or pdf file of balaguruswamy book on c
language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
| | 4 |
| What's a "sequence point"? | | 2 |
| C,c++, Java is all are structural oriented or procedure
oriented language..? | | 3 |
| write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc) | | 4 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| 2.main
{
int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
| HCL | 6 |
| Write a program to write a given string in maximum
possibilities?
i.e str[5]="reddy";
i.e we can write this string in 120 ways
for that write a program | Subex | 3 |
| write a code for large nos multilication (upto 200 digits) | Persistent | 1 |
| |
| For more C Interview Questions Click Here |