C Interview Questions
Questions Answers Views Company eMail

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

Silicon,

8 18375

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

Accenture,

1 3642

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

IBM, HCL, Accenture,

17 12291




what is difference between array of characters and string

Nest, Accenture,

18 36460

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

Accenture,

14 12836

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

Accenture,

9 5996

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

Wipro, Infosys, Accenture, TCS,

16 12988

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

TCS, Accenture, Wipro,

36 15178




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 7638

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

Google,

8 10599

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

Google,

3 9081

what is the hexidecimal number of 4100?

Google,

16 13432

give one ip, find out which contry

Google,

4 9204

What is C language Terminator?

TCS,

15 19876

program to find a smallest number in an array

Sony, Microsoft,

15 29597


Post New C Questions






Un-Answered Questions { C }

how to capitalise first letter of each word in a given string?

714


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1053


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1011


Which driver is a pure java driver

173


write a c program for swapping two strings using pointer

1306






how to execute a program using if else condition and the output should enter number and the number is odd only...

861


How to establish connection with oracle database software from c language?

923


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

886


how to write a c program to print list of fruits in alpabetical order?

705


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

2990


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

821


write a program to generate address labels using structures?

1460


How will you find a duplicate number in a array without negating the nos ?

920


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

658


program to convert a integer to string in c language'

1109