| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2;
Find the value of x? | Subex | 2 |
| What is a class? | | 2 |
| what is the differnce between AF_INET and PF_INET? | Wipro | 2 |
| If 4 digits number is input through the keyboard, Write a
program to calculate sum of its 1st & 4th digit. | | 4 |
| write an interactive program to generate the divisors of a
given integer. | TCS | 4 |
| why should i select you? | Wipro | 18 |
| why r u join this company? give solid resons. | Infosys | 7 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 2 |
| what is out put of the following code?
#include
class Base
{
Base()
{
cout<<"constructor base";
}
~Base()
{
cout<<"destructor base";
}
}
class Derived:public Base
{
Derived()
{
cout<<"constructor derived";
}
~Derived()
{
cout<<"destructor derived";
}
}
void main()
{
Base *var=new Derived();
delete var;
}
| Honeywell | 2 |
| what is the size of an integer variable? | | 1 |
| give one ip, find out which contry | Google | 4 |
| write a Program to dispaly upto 100 prime numbers(without
using Arrays,Pointer) | Wipro | 7 |
| #define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
| NDS | 1 |
| Explain in detail how strset (string handling function
works )pls explain it with an example. | | 1 |
| 9.how do you write a function that takes a variable number
of arguments? What is the prototype of printf () function?
10.How do you access command-line arguments?
11.what does ‘#include<stdio.h>’ mean?
12.what is the difference between #include<> and #include”…”?
13.what are # pragma staments?
14.what is the most appropriate way to write a
multi-statement macro? | L&T | 4 |
| we all know about the function overloading concept used in
C++ and we all learnt abt that.... but that concept is
already came in C in a very smaller propotion ... my
question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION
OVERLOADING IS USED in C language????????????? | Google | 2 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack | | 5 |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| |
| For more C Interview Questions Click Here |