C Interview Questions
Questions Answers Views Company eMail

how to find the kth smallest element in the given list of array elemnts.

Silicon,

8 22488

how to sort two array of characters and make a new array of characters.

Accenture,

1 4981

what is difference between ++(*p) and (*p)++

Accenture, HCL, IBM,

17 24950

what is difference between array of characters and string

Accenture, Nest,

18 43692

char ch=10;printf("%d",ch);what is the output

Accenture,

14 22644

char ch="{'H','I',0};printf("%s",ch);what is output

Accenture,

9 11184

which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma

Accenture, Infosys, TCS, Wipro,

16 21022

what will be the output: main(){char ch;int a=10;printf("%d",ch);}

Accenture, TCS, Wipro,

36 28046

value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?

Google,

6 11210

class foo { public: static int func(const char*& p) const; }; This is illegal, why?

Google,

8 14772

how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.

Google,

3 11339

what is the hexidecimal number of 4100?

Google,

16 20512

give one ip, find out which contry

Google,

4 11498

What is C language Terminator?

TCS,

15 29306

program to find a smallest number in an array

Microsoft, Sony,

15 36420


Post New C Questions

Un-Answered Questions { C }

Differentiate between a structure and a union.

806


why return type of main is not necessary in linux

1737


What would be an example of a structure analogous to structure c?

614


Explain how can I convert a string to a number?

675


What is the correct code to have following output in c using nested for loop?

645






What is the most efficient way to count the number of bits which are set in an integer?

617


is it possible to create your own header files?

669


Why static variable is used in c?

600


Why do we use & in c?

620


‎How to define structures? · ‎

678


What is the description for syntax errors?

654


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1822


What does malloc () calloc () realloc () free () do?

594


Explain the concept and use of type void.

679


What is a function simple definition?

664