C Interview Questions
Questions Answers Views Company eMail

write a prgram of swapping with 2 valiables

6 5604

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

EBS,

9 29179

how to set Nth bit of a variable?

1 7368

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 5576

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

3 9389

why we need function pointers?

3 5701

how to find your architecture is LittleEndian or BigEndian?

1 4143

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

1887

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 14439

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

IonIdea,

1 6754

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

IonIdea,

1 6278

how to set Nth bit of variable by using MACRO

HCL,

3 26007

#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 8815

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 4706

diff .between strcture and union

2 3865


Post New C Questions

Un-Answered Questions { C }

What is variable initialization and why is it important?

746


What is union and structure in c?

767


What is the argument of a function in c?

709


What is the scope of static variables in c language?

758


What is the c value paradox and how is it explained?

707






What are structures and unions? State differencves between them.

751


What are near, far and huge pointers?

778


Is python a c language?

686


Explain how can I write functions that take a variable number of arguments?

720


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1587


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

778


Is main an identifier in c?

749


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

742


Explain a file operation in C with an example.

784


What is linear search?

833