C Interview Questions
Questions Answers Views Company eMail

What is the difference between macros and inline functions?

Global Edge, L&T,

5 7659

what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }

1 1947

How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 2235




What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 2906

what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }

3 2781

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.

Infosys, Vodafone, Webyog, Drona Solutions,

2 8659

write a programe to find the factorial of given number using recursion

3 4443

write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.

3 2339




FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

Wipro,

4 2935

void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?

Wipro,

8 6867

if we take a number as a char then can we manipulate(add, subtract) on this number

2 1961

In which category does main function belong??

5 3314

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 3675

what is an inline fuction??

2 2247

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

TCS,

822


Post New C Questions






Un-Answered Questions { C }

show how link list can be used to repersent the following polynomial i) 5x+2

954


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.

848


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

494


what is the role you expect in software industry?

990


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

854






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

900


how to find anagram without using string functions using only loops in c programming

1952


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1142


c language interview questions & answer

749


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

16796


how many errors in c explain deply

898


application attempts to perform an operation?

748


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

792


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

1286


why wipro wase

1083