| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| How the processor registers can be used in C ? | HP | 4 |
| write a program to generate 1st n fibonacci prime number | | 5 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| 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 |
| Why doesn't the code "a[i] = i++;" work? | | 4 |
| In scanf h is used for | BFL | 2 |
| write an algorithm which can find the largest number among
the given list using binary search ...............
this was asked in the interview | Satyam | 2 |
| What is the difference between null pointer and the void
pointer? | | 2 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| program for comparing 2 strings without strcmp() | | 3 |
| biggest of two no's with out using if condition statement | | 2 |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 5 |
| Can I pass constant values to functions which accept structure
arguments? | | 2 |
| 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 |
| How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal) | Subex | 1 |
| what is disadvantage of pointer in C | Tech-Mahindra | 5 |
| pick out the odd one out of the following
a.malloc()
b.calloc()
c.free()
d.realloc()
| TCS | 1 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 7 |
| |
| For more C Interview Questions Click Here |