C Interview Questions
Questions Answers Views Company eMail

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

Silicon,

8 18230

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

Accenture,

1 3573

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

IBM, HCL, Accenture,

17 11914




what is difference between array of characters and string

Nest, Accenture,

18 36295

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

Accenture,

14 12521

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

Accenture,

9 5895

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

Wipro, Infosys, Accenture, TCS,

16 12660

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

TCS, Accenture, Wipro,

36 14999




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 7538

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

Google,

8 10399

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

Google,

3 9009

what is the hexidecimal number of 4100?

Google,

16 13271

give one ip, find out which contry

Google,

4 9144

What is C language Terminator?

TCS,

15 19552

program to find a smallest number in an array

Sony, Microsoft,

15 29443


Post New C Questions






Un-Answered Questions { C }

Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

914


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

146


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

663


what are the facialities provided by you after the selection of the student.

918


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

751






Can you think of a logic behind the game minesweeper.

878


c program to compute AREA under integral

932


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

120


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1429


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

706


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2442


write a c program in such a way that if we enter the today date the output should be next day's date.

897


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

1527


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

435


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

1404