| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 2 |
| Blade logic interview question.
1st round is a written tests with 15 multiple questions
from c and c++. All are simple basic question.
Like int main ()
{
Int i=65;
Return printf(“%c”, i);
}
2nd and 3rd round is technical interview.
The position for which I was interview was core UNIX and c.
Yes it is for system programming.
The company has product name blade server. For their server
they are creating their own command for their purpose.
Example cd command.
We can implement it in a c program by using the chdir()
function.
So the question asks related to PID, fork, pipe, shared
memory, signal.
Write a program in c which will act as cp command.
| BladeLogic | 1 |
| a memory of 20 bytes is allocated to a string declared as
char *s then the following two statements are executed:
s="Etrance"
l=strlen(s);
what is the value of l ?
a.20
b.8
c.9
d.21
| TCS | 2 |
| int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
| Mascot | 5 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 3 |
| write an algorithm which can find the largest number among
the given list using binary search ...............
this was asked in the interview | Satyam | 2 |
| #define d 10+10
main()
{
printf("%d",d*d);
} | | 2 |
| a C prog to swap 2 no.s without using variables just an
array? | TCS | 4 |
| How can I get Single byte from 'int' type variable? Can we
alter single bit or multiple bits in int type variable? if so,
How? | | 1 |
| What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
} | ADITI | 11 |
| Explain in detail how strset (string handling function
works )pls explain it with an example. | | 1 |
| what is array? | HCL | 6 |
| The differences between Windows XP and Windows Visa
| HCL | 6 |
| what is the use of a array in c | | 4 |
| why i join syntel? | Syntel | 11 |
| what is op?
for(c=0;c=1000;c++)
printf("%c",c); | Trigent | 15 |
| write a program to print the all 4digits numbers & whose
squares must me even numbers? | Virtusa | 1 |
| Concat two string with most overlapped substring has to
remove "abcd"+ "cdef" = "abcdef | | 5 |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 4 |
| |
| For more C Interview Questions Click Here |