C Interview Questions
Questions Answers Views Company eMail

How to reverse a linked list

IBM, TCS, Aricent,

1 4668

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 63699

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

7 53495




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

3 5887

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

2 4087

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

Alcatel,

4 23844

implement OR gate without using any bitwise operator.

Wipro, Alcatel,

1 3622

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

Lucent,

2 2662




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 4824

what is difference between C and C++

4 3625

which is faster execution: loops or recursion?

3 3521

#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 4360

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

1750

what is computer

4 2380

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 4710


Post New C Questions






Un-Answered Questions { C }

write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

758


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

785


What is the difference between if else and switchstatement

478


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.

957


FILE PROGRAMMING

953






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

727


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

1372


What is ambagious result in C? explain with an example.

978


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

763


Difference between Shallow copy and Deep copy?

779


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1062


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

598


Write a c program to demonstrate character and string constants?

870


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

654


program to convert a integer to string in c language'

1039