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 2642

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 7056

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

HP, IBM,

4 15205

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

TCS,

1 8424

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

nvidia,

5 10975

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

6 5718

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

TCS,

7 19534

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

ME, Synfusion, Wipro,

2 8234

what is the difference between embedded c and turbo c ?

1 5020

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.

4822

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.

1751

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

4 4671

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

6 8827

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

Wipro,

2 4460

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

TCS,

1 6044


Post New C Questions

Un-Answered Questions { C }

What standard functions are available to manipulate strings?

552


Explain how do you search data in a data file using random access method?

683


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1056


What is a void pointer in c?

594


Where are some collections of useful code fragments and examples?

701






Explain what is a static function?

622


I need a sort of an approximate strcmp routine?

645


How can I discover how many arguments a function was actually called with?

622


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1110


What is typedef?

655


Which driver is a pure java driver

976


What are the types of data files?

709


Write a program for Overriding.

668


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.

2145


When is a void pointer used?

668