C Interview Questions
Questions Answers Views Company eMail

How to reverse a linked list

IBM, TCS, Aricent,

1 4715

1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

Eskom, TCS,

12 64124

write a c program to store and print name,address,roll.no of a student using structures?

7 54337




Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 5917

Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001

2 4133

implement NAND gate logic in C code without using any bitwise operatior.

Alcatel,

4 24186

implement OR gate without using any bitwise operator.

Wipro, Alcatel,

1 3660

Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

Lucent,

2 2706




in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

Infosys, NetApp,

4 4863

what is difference between C and C++

4 3676

which is faster execution: loops or recursion?

3 3557

#include #include void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?

3 4393

Simplify the program segment if X = B then C ← true else C ← false

1774

what is computer

4 2426

we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?

Wipro, HP,

4 4755


Post New C Questions






Un-Answered Questions { C }

The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

1771


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

1985


write a program to create a sparse matrix using dynamic memory allocation.

3431


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

3918


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

712






can any one provide me the notes of data structure for ignou cs-62 paper

941


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

1484


about c language

768


write a program to copy the string using switch case?

1603


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1915


how to build a exercise findig min number of e heap with list imlemented?

738


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

695


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

871


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

542


simple program of graphics and their output display

695