C Interview Questions
Questions Answers Views Company eMail

write a prgram of swapping with 2 valiables

6 5080

Why c++ is called c++ and not c+?

EBS,

9 28249

how to set Nth bit of a variable?

1 7154

what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

TCS,

4 5046

what is the output of below int n=10; (n++)++; printf("%d",n);

3 8870

why we need function pointers?

3 5320

how to find your architecture is LittleEndian or BigEndian?

1 3903

Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1753

Write a program that takes a 5 digit number and calculates 2 power that number and prints it

ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,

5 13743

write a program wch produces its own source code aas its output?

IonIdea,

1 6433

write a program which will count occurance of a day between two dates.

IonIdea,

1 6031

how to set Nth bit of variable by using MACRO

HCL,

3 25566

#include void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; printf("%d\t%d\t%d",a,b,c); }

3 8251

write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 4262

diff .between strcture and union

2 3602


Post New C Questions

Un-Answered Questions { C }

What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

893


Explain what are binary trees?

600


Explain what is the difference between functions getch() and getche()?

595


What are the features of the c language?

633


What is the explanation for modular programming?

671






Why are all header files not declared in every c program?

592


What are two dimensional arrays alternatively called as?

649


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1414


What is indirection?

638


Can main () be called recursively?

619


what is stack , heap ,code segment,and data segment

2208


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

772


What is getch() function?

637


What are void pointers in c?

566


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

627