C Interview Questions
Questions Answers Views Company eMail

Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

1 1673

Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.

Infosys,

2 5642

How to convert decimal to binary in C using recursion??

HP, IBM,

4 12858




Write a C program where input is: "My name is xyz". output is: "xyz is name My".

TCS,

1 5573

Write a small C program to determine whether a machine's type is little-endian or big-endian.

nvidia,

5 8575

can v write main() { main(); } Is it true?

6 3217

Write a C program to find the smallest of three integers, without using any of the comparision operators.

TCS,

7 15371

Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?

Wipro, ME, Synfusion,

2 6866




what is the difference between embedded c and turbo c ?

1 3861

Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

3698

Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

946

what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"

4 2786

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 4961

c program to manipulate x=1+3+5+...+n using recursion

Wipro,

2 3190

c program to manipulate x=1!+2!+3!+...+n! using recursion

TCS,

1 4815


Post New C Questions






Un-Answered Questions { C }

What is ambagious result in C? explain with an example.

1156


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1836


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

802


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1002


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1197






the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

16895


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.

892


c program for searching a student details among 10 student details

989


can any one tel me wt is the question pattern for NIC exam

905


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

923


write a progrmm in c language take user interface generate table using for loop?

858


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1642


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

1990


Why is event driven programming or procedural programming, better within specific scenario?

1253


Sir i need notes for structure,functions,pointers in c language can you help me please

1284