| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| We can draw a box in cprogram by using only one printf();&
without using graphic.h header file? | NIIT | 3 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| logic for generating all the combinations of the any number
of given letters.
ex:::::::::
if a,b,c,d are given the o/p should be
abcd,dcba,dbac,bcad,................
4*3*2*1 combinations............ | Infosys | 2 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code? | Ramco | 4 |
| plz answer.. a program that takes a string e.g. "345" and
returns integer 345 | | 3 |
| what are the static variables
| HCL | 7 |
| f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?
| Geometric-Software | 5 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| what is the definition of storage classes? | Wipro | 2 |
| Software Interview Questions | CAT | 1 |
| True or false: If you continuously increment a variable, it
will become negative?
1) True
2) False
3) It depends on the variable type
| | 5 |
| How the processor registers can be used in C ? | HP | 4 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| How to reverse a string using a recursive function, without
swapping or using an extra memory? | Motorola | 18 |
| fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}
| HCL | 3 |
| what is the difference between
const char *p, char const *p, const char* const p
| Accenture | 4 |
| Dear Sir,
we are required the bubble sorting programs
Regs
Prem | | 1 |
| What is external and internal variables
What is dynamic memory allocation
what is storage classes in C | | 2 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| |
| For more C Interview Questions Click Here |