C Interview Questions
Questions Answers Views Company eMail

Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?

TCS,

4 9759

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 5314

inline function is there in c language?

4 6631

what is an inline function?

TCS,

2 3837

where do we use structure pointer?

1 3008

where do we use volatile keyword?

1 3602

what is constant pointer?

3 4791

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

2 3554

code for bubble sort?

1 3078

code for selection sort?

1 3452

code for quick sort?

1729

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

3 5117

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

HP,

2 9093

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 4808

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

2 6477


Post New C Questions

Un-Answered Questions { C }

Write a code to determine the total number of stops an elevator would take to serve N number of people.

846


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1576


What is the right type to use for boolean values in c? Is there a standard type?

684


Why do we need a structure?

697


Explain how can I convert a number to a string?

741






how is the examination pattern?

1700


What is static function in c?

736


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

4080


What is wrong with this statement? Myname = 'robin';

941


What is a MAC Address?

731


how to build a exercise findig min number of e heap with list imlemented?

1735


What is wrong with this declaration?

729


Explain the difference between the local variable and global variable in c?

715


Explain can static variables be declared in a header file?

783


What is #include stdlib h?

725