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 1616

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 5575

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

HP, IBM,

4 12694




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

TCS,

1 5476

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

nvidia,

5 8488

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

6 3150

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

TCS,

7 15131

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 6794




what is the difference between embedded c and turbo c ?

1 3779

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.

3593

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.

905

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

4 2697

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

6 4792

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

Wipro,

2 3127

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

TCS,

1 4724


Post New C Questions






Un-Answered Questions { C }

void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

428


i want to know the procedure of qualcomm for getting a job through offcampus

1224


write a program to print data of 5 five students with structures?

884


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

2486


please give me some tips for the placement in the TCS.

936






1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2028


about c language

813


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

1342


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

270


#include { printf("Hello"); } how compile time affects when we add additional header file .

686


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!+....

16613


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

815


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

586


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

829


What is the difference between if else and switchstatement

545