C Interview Questions
Questions Answers Views Company eMail

what is array?

8 7777

hi send me sample aptitude papers of cts?

1737

What is macro?

IBM,

5 7289

Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.

Microsoft,

11 17221

define function

Assurgent, Sonata,

4 6277

what is a headerfile?and what will be a program without it explain nan example?

Assurgent,

6 8361

write a program for size of a data type without using sizeof() operator?

HCL, IBM,

22 46900

If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).

Microsoft, Motorola,

5 10092

write a program to display the array elements in reverse order in c language

16 72865

write a program to find the sum of the array elements in c language?

ICT, Infosys, Wipro,

24 80195

write a program to find the number of even integers and odd integers in a given array in c language

IAI Cameroun, NIIT, Olive Tech, QIS,

13 74271

write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language

IT Park, TCS,

18 117776

Write a program to find the smallest and largest element in a given array in c language

Microsoft, Vembu,

11 52446

write a program to display the frequency of each element in a given array in c language

1 9469

write a program to sort the elements in a given array in c language

TCS,

10 47375


Post New C Questions

Un-Answered Questions { C }

in linking some of os executables are linking name some of them

1763


What is d scanf?

675


How many types of operators are there in c?

710


write a program to rearrange the array such way that all even elements should come first and next come odd

1871


What does != Mean in c?

684






What does main () mean in c?

721


Are there constructors in c?

696


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

715


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]

2058


How can you find out how much memory is available?

701


What will be your course of action for a push operation?

744


What is masking?

748


Is array a primitive data type in c?

663


What is strcmp in c?

677


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

673