C Interview Questions

what is array?

7427

hi send me sample aptitude papers of cts?

1692

What is macro?

IBM,

7103

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

16862

define function

6097

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

8145

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

HCL, IBM,

46307

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).

9896

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

72401

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

79417

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

73894

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

117159

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

52088

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

9380

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

TCS,

47065

what are bit fields? What is the use of bit fields in a structure declaration?

1545

Why is c called "mother" language?

908

any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

677

When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

863

What is scanf_s in c?

684

Why ca not I do something like this?

638

Describe explain how arrays can be passed to a user defined function

652

How macro execution is faster than function ?

712

What is sizeof c?

663

What are keywords c?

640

Why c is called a middle level language?

666

How does placing some code lines between the comment symbol help in debugging the code?

589

What is variable in c example?

639

Write a code on reverse string and its complexity.

651

Is c is a middle level language?

640