C Interview Questions
Questions Answers Views Company eMail

What are Storage Classes in C ?

TATA, TCS, CTS, IBM, Wipro, HP, Tamil Nadu Open University TNOU, Maharaja Whiteline,

32 95729

How the processor registers can be used in C ?


7 10852

What is an volatile variable?


15 26621

How to access or modify the const variable in c ?


16 26307

What is structure padding ?


3 25167

What is structure packing ?


2 11048

How to implement call back functions ?


3 6795

What is an anonymous union and where to apply that ?


3 6879

How to implement variable argument functions ?


1 6381

What are advantages and disadvantages of recursive calling ?

HP, College School Exams Tests, Jyoti Ltd, Sage, Wipro, Evolving Systems,

12 88049

How the C program can be compiled?


10 10733

What are the preprocessors?


8 10289

what are the various memory handling mechanisms in C ?


4 8205

what is a function pointer and how all to declare ,define and implement it ???


4 7875

Give a fast way to multiply a number by 7

Microsoft, Aricent, Accenture,

15 38305

Post New C Questions

Un-Answered Questions { C }

can anyone please tell about the nested interrupts?


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.


can we have joblib in a proc ?


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.


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)


what type of questions arrive in interview over c programming?


Why is event driven programming or procedural programming, better within specific scenario?


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]


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


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402


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)


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. The Logic should be written in Data Structures?


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.