| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can I prevent other programmers from violating
encapsulation by seeing the private parts of my class? | | 1 |
| write an algorithm to get a sentence and reverse it in the
following format:
input : I am here
opuput: Here Am I
note: first letter of every word is capiatlised | | 2 |
| write a c program to find biggest of 3 number without
relational operator? | Wipro | 2 |
| helllo sir
give me some information of the basic information the
c as printf ,scanf , %d ,%f and why is the main use of
these. | | 3 |
| write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
| Motorola | 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 |
| What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa.. | Aricent | 4 |
| how does printf function work | | 1 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 13 |
| what is link list?
| | 2 |
| What's the difference between a linked list and an array?
| | 11 |
| difference between memcpy and strcpy | | 1 |
| 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 |
| what is the use of a array in c | | 4 |
| Toggle nth bit in a given integer - num | Qualcomm | 2 |
| what is diff b/w huge & far & near pointer?? | HCL | 1 |
| how to find a 5th bit is set in c program | IBM | 3 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| Program to write some contents into a file using file
operations with proper error messages. | | 1 |
| convert 0.9375 to binary | CTS | 1 |
| |
| For more C Interview Questions Click Here |