| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| which operator having highest precedence?
a.)+ b.)++ c.)= d.)%
| | 3 |
| What are the uses of pre-processor directives? | | 2 |
| program to find a smallest number in an array | Microsoft | 5 |
| 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 |
| related to rdbms query . | | 1 |
| what is the difference between structural,object
based,object orientd programming languages? | PanTerra | 1 |
| What should be keep precautions while using the recursion
method? | | 1 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| how to implement stack work as a queue? | | 2 |
| what is use of loop? | Infosys | 6 |
| declare afunction pointer to int printf(char *)? | HCL | 1 |
| void main()
{
int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} };
int (*p)[2];
int i,j,*pint;
for(i=0;i<=3;i++)
{
p=&s[i];
pint=p;
printf("\n");
for(j=0;j<=1;j++)
printf("%d",*(pint+j));
}
} while running this program it shows a warning-suspicious
pointer conversion ie pint=p; my que is why should we assign
the value of p to pint again.why cant we use it directly as
*(p+j)..but if i use like tat the o/p is garbage value.. | | 1 |
| How can I access memory located at a certain address? | | 2 |
| How do I access command-line arguments? | Wipro | 2 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| Reverse a string word by word?? | | 6 |
| who will call your main function in c under linux? | | 2 |
| which one is not preprocessor directive
a)#if b)#elif c)#undef d)#pragma
| Wipro | 13 |
| |
| For more C Interview Questions Click Here |