C Interview Questions

write a program to copy a string without using a string?

4429

what is the coding of display the factorial of a number using array and function?

3111

write a program to display reverse of a number using for loop?

40629

give an example of type casting by a simple c program

TCS,

3991

You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?

2860

write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

IBM,

5358

write a program to gat the digt sum of a number (et. 15= >1+5=6)

3299

write a progam to display the factors of a given number and disply how many prime numbers are there?

6919

What is the mean of this statement:: if(int i=0 * i=9)

HCL,

4069

control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent

2906

write a c program to find the roots of a quadratic equation ax2 + bx + c = 0

43916

write a program to swap two numbers without using temporary variable?

6104

how to write a data 10 in address location 0x2000

4668

what is a non volatile key word in c language?

3869

what is diognisis?

3038

For what purpose null pointer used?

626

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3693

What is the scope of local variable in c?

593

Can we access the array using a pointer in c language?

575

Explain logical errors? Compare with syntax errors.

647

Why we use stdio h in c?

616

What are the advantages of external class?

606

how is the examination pattern?

1618

What is table lookup in c?

658

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

2769

Why can’t we compare structures?

832

What is the difference between variable declaration and variable definition in c?

580

hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1429

1967

What is a macro?

677