| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is a symbolic constant? | | 1 |
| How to receive strings with spaces in scanf() | | 4 |
| In the following control structure which is faster?
1.Switch
2.If-else
and which consumes more memory? | | 4 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| what does " calloc" do? | Cadence | 6 |
| what is array? | HCL | 22 |
| we have to use realloc only after malloc or calloc ? or we
can use initially with out depending on whether we are
using malloc or calloc in our program ? | | 1 |
| what is the definition of storage classes? | Wipro | 2 |
| wats SIZE_T meant for? | | 1 |
| Write a program for the following series:
1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms | Convex-Digital | 4 |
| how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a.p=p+x;
q=q+y
b.p=p+xq=q+y
c.p=p+xq;
q=q+y
d.p=p+x/q=q+y
| TCS | 3 |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| what is the output?
#define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t)
float gfloat;
main()
{
float a=1.12,b=3.14;
fun (a,b,float);
printf("na=%4.2f,b=%4.2f",a,b);
}
A)Error in Defining Macro
B)a=1.12,b=3.14
C)a=3.14,b=1.12
D)None of the Above
| Accenture | 2 |
| what are two categories of clint-server application
development ? | | 1 |
| convert 12345 to 54321 withoutusing strig | | 3 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| write a program to sort the elements in a given array in c
language | | 2 |
| how many header file is in C language ? | | 14 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| |
| For more C Interview Questions Click Here |