C Interview Questions
Questions Answers Views Company eMail

write a prgram of swapping with 2 valiables

6 5980

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

EBS,

9 29869

how to set Nth bit of a variable?

1 7607

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 5931

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

3 9687

why we need function pointers?

3 5974

how to find your architecture is LittleEndian or BigEndian?

1 4337

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

1984

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 14917

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

IonIdea,

1 7021

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

IonIdea,

1 6475

how to set Nth bit of variable by using MACRO

HCL,

3 26333

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

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 4976

diff .between strcture and union

2 4072


Post New C Questions

Un-Answered Questions { C }

What are the types of macro formats?

857


What is difference between static and global variable in c?

804


What is the difference between c and python?

857


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

23171


What does p mean in physics?

836


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1804


What is the size of empty structure in c?

848


What does == mean in texting?

963


c program to compute AREA under integral

2122


Are pointers really faster than arrays?

779


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1032


Which built-in library function can be used to match a patter from the string?

1041


Explain the binary height balanced tree?

944


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

937


How can I make sure that my program is the only one accessing a file?

992