Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C Interview Questions
Questions Answers Views Company eMail

Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?

TCS,

4 7640

can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 3969

inline function is there in c language?

4 4963

what is an inline function?

TCS,

2 2626

where do we use structure pointer?

1 2040

where do we use volatile keyword?

1 2665

what is constant pointer?

3 3395

what is the use of bitfields & where do we use them?

2 2315

code for bubble sort?

1 2251

code for selection sort?

1 2504

code for quick sort?

1151

code for concatination of 2 strings with out using library functions?

3 3538

how 2 compile & execute c program with out using editor?

HP,

2 7873

You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

Qualcomm,

2 3681

wat s the meaning of (int *)p +4;

2 5229


Post New C Questions






Un-Answered Questions { C }

Define macros.

172


How do I copy files?

153


What is void main () in c?

166


Write program to remove duplicate in an array?

147


Compare and contrast compilers from interpreters.

178






What are the types of type specifiers?

157


How can a program be made to print the line number where an error occurs?

185


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

246


State the difference between x3 and x[3].

156


Explain how can I open a file so that other programs can update it at the same time?

152


What does a function declared as pascal do differently?

170


What does c mean?

124


Why should I prototype a function?

179


will u please send me the placement papers to my mail???????????????????

897


In C language what is a 'dangling pointer'?

206