C Interview Questions
Questions Answers Views Company eMail

write a prgram of swapping with 2 valiables

6 5804

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

EBS,

9 29576

how to set Nth bit of a variable?

1 7488

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 5790

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

3 9538

why we need function pointers?

3 5853

how to find your architecture is LittleEndian or BigEndian?

1 4241

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

1950

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 14735

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

IonIdea,

1 6952

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

IonIdea,

1 6406

how to set Nth bit of variable by using MACRO

HCL,

3 26208

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

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 4861

diff .between strcture and union

2 3992


Post New C Questions

Un-Answered Questions { C }

What are integer variable, floating-point variable and character variable?

848


What are derived data types in c?

790


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15428


What is null character in c?

858


Why is c called a structured programming language?

984


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

1821


What is meant by errors and debugging?

843


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

826


What does the characters “r” and “w” mean when writing programs that will make use of files?

1167


Explain output of printf("Hello World"-'A'+'B'); ?

1164


Do you have any idea how to compare array with pointer in c?

812


Explain what math functions are available for integers? For floating point?

835


How can my program discover the complete pathname to the executable from which it was invoked?

844


What does printf does?

957


How can I list all of the predefined identifiers?

750