C Interview Questions
Questions Answers Views Company eMail

If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.

Google,

11 25895

Write a C function to search a number in the given list of numbers. donot use printf and scanf

TCS, Honeywell,

6 6304

what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }

Honeywell,

3 4599




Find string palindrome 10marks

Infosys, Honeywell, Roland, Riktam,

5 7213

a C prog to swap 2 no.s without using variables just an array?

TCS,

5 4741

Write a program in c to input a 5 digit number and print it in words.

11 50852

How to receive strings with spaces in scanf()

7 4732

i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }

2 2220




wap in c to accept n number display the highest and lowest value

2 5069

wap in c to accept a number display the total count of digit

4 8261

what are the difference between ANSI C and Let Us c and Turbo C

LG Soft,

4 14392

The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................

IBM, HOV Services, Potty,

14 14824

what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>

TCS,

5 4615

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

HCL,

1157

i want to know aptitude questions,technical questions

2 3944


Post New C Questions






Un-Answered Questions { C }

a c code by using memory allocation for add ,multiply of sprase matrixes

1372


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

1961


Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

583


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

828


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

1180






What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

907


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

758


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

677


Calculate 1*2*3*____*n using recursive function??

710


in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

9152


string reverse using recursion

1015


in iso what are the common technological language?

874


what is uses of .net

466


application attempts to perform an operation?

651


How to draw the flowchart for structure programs?

6271