| 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 |
| write a program that print itself even if the source file is
deleted? | | 1 |
| a.One Cannot Take the address of a Bit Field
b.bit fields cannot be arrayed
c.Bit-Fields are machine Dependant
d.Bit-fields cannot be declared as static
Which of the Following Statements are true w.r.t Bit-Fields
A)a,b&c B)Only a & b C)Only c D)All
| Accenture | 2 |
| how to find string length wihtout using c function? | | 4 |
| What are volatile variables? | | 1 |
| how memory store byte
| Huawei | 3 |
| Describe advantages and disadvantages of the various stock
sorting algorithms | Microsoft | 1 |
| What are advantages and disadvantages of recursive
calling ? | HP | 11 |
| How can I implement opaque (abstract) data types in C?
What's the difference between these two declarations?
struct x1 { ... };
typedef struct { ... } x2;
| | 2 |
| without using arithmatic operator convert an intger variable
x into x+1 | | 1 |
| 11. Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 7 |
| write a program to insert an element at the specified
position in the given array in c language | IBM | 2 |
| C program to perform stack operation using singly linked list | | 1 |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value | Accenture | 3 |
| Write a routine that prints out a 2-D array in spiral order! | Lucent | 1 |
| consider the following structure:
struct num nam{
int no;
char name[25];
};
struct num nam
n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
a.8,9
b.9,9
c.8,8
d.8,unpredictable value
| TCS | 3 |
| what is object oriental programing? | | 1 |
| What should not contain a header file? | | 2 |
| what is the difference b/w compiler and debugger? | Assurgent | 1 |
| |
| For more C Interview Questions Click Here |