| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 4.A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 4 |
| difference between my-strcpy and strcpy ? | Geometric-Software | 3 |
| how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk. | Google | 3 |
| c programming of binary addition of two binary numbers
| | 1 |
| prototype of sine function. | Cadence | 2 |
| write a programe returns the number of times the character
appears in the string | | 1 |
| Explain in detail how strset (string handling function
works )pls explain it with an example. | | 1 |
| a number is perfect if it is equal to the sum of its proper
divisor..
6 is perfect number coz its proper divisors are 1,2 and
three.. and 1+2+3=6...
a number is deficient if the sum of its proper divisor is
less than the number..
sample: 8 is deficient, coz its proper divisors are 1,2 and
4, and 1+2+4=7.
abundant number, if the sum of its proper divisor is greater
than the number..
sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12.
now write a program that prompts the user for a number, then
determines whether the number is perfect,deficient and
abundant.. | | 1 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| can anyone please tell me wat is backlogs... i was looking
for the job openings where i read this.. eligibility
criteria minimum 70% in degree without backlogs. is that
arrear.. if so is it standing arrear or history of
arrears... please help me... | | 4 |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 4 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| Reverse the part of the number which is present from
position i to j. Print the new number.
eg:
num=789876
i=2
j=5
778986 | | 1 |
| How does C++ help with the tradeoff of safety vs. usability?
| | 1 |
| what is a static function | Satyam | 10 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 6 |
| different between overloading and overriding | | 3 |
| Explain the differences between public, protected, private
and internal. | | 1 |
| How the processor registers can be used in C ? | HP | 4 |
| what will the following program do?
void main()
{
int i;
char a[]="String";
char *p="New Sring";
char *Temp;
Temp=a;
a=malloc(strlen(p) + 1);
strcpy(a,p);
//Line no:9//
p = malloc(strlen(Temp) + 1);
strcpy(p,Temp);
printf("(%s, %s)",a,p);
free(p);
free(a);
}
//Line no 15//
a) Swap contents of p & a and print:(New string, string)
b) Generate compilation error in line number 8
c) Generate compilation error in line number 5
d) Generate compilation error in line number 7
e) Generate compilation error in line number 1
| IBM | 1 |
| |
| For more C Interview Questions Click Here |