Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C Interview Questions
Questions Answers Views Company eMail

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

Silicon,

8 19961

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

Accenture,

1 4128

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

Accenture, HCL, IBM,

17 16540

what is difference between array of characters and string

Accenture, Nest,

18 38758

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

Accenture,

14 16409

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

Accenture,

9 7640

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

Accenture, Infosys, TCS, Wipro,

16 15788

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

Accenture, TCS, Wipro,

36 18949

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 8784

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

Google,

8 12158

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

Google,

3 9797

what is the hexidecimal number of 4100?

Google,

16 15775

give one ip, find out which contry

Google,

4 9819

What is C language Terminator?

TCS,

15 23546

program to find a smallest number in an array

Microsoft, Sony,

15 31954


Post New C Questions






Un-Answered Questions { C }

Define the scope of static variables.

140


Which one would you prefer - a macro or a function?

150


what do you mean by enumeration constant?

152


What is main function in c?

88


write a program to generate address labels using structures?

2208






What is the best way to store flag values in a program?

146


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

144


Explain how can I pad a string to a known length?

155


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

194


What is zero based addressing?

182


What are the 3 types of structures?

125


How do you list a file’s date and time?

163


Explain what header files do I need in order to define the standard library functions I use?

174


Why c is known as a mother language?

142


What is a null pointer in c?

146