C Interview Questions
Questions Answers Views Company eMail

In which area global, external variables are stored?

3 4694

what is inline function?

2 2793

why program counter is 16 bit?

3 3087




void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?

7 16479

can we define a function in structure?

2 3776

can we declare a function in side the structure?

HCL,

2 2402

can we initialize all the members of union?

2 5007

what is the structure pointer?

Accenture, HCL,

958




where do we use volatile keyword?

1 2371

Find greatest of two numbers using macro

Siemens, Bosch,

4 29265

what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.

HCL,

6 3410

increment operateor (++)and decrament(--) #include #inclide main() { int x=15; while(x!=0) scanf("%d",&x); {

Syntel, HCL, TCS,

2 2999

Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.

2 8411

Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

TCS,

1 10011

Can you write the algorithm for Queue?

TCS, College School Exams Tests,

835


Post New C Questions






Un-Answered Questions { C }

difference between native and cross compilers

900


find out largest elemant of diagonalmatrix

879


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

501


to find the closest pair

1047


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

93






what value is returned to operating system after program execution?

870


Write a progarm to find the length of string using switch case?

880


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1041


write a program to copy the string using switch case?

1677


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

917


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

2052


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

790


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2124


difference between object file and executable file

4336


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.

491