C Interview Questions
Questions Answers Views Company eMail

Are the outer parentheses in return statements really optional?

693

Are pointers really faster than arrays?

678

How do I swap bytes?

738

How can I get random integers in a certain range?

702

How can I determine whether a machines byte order is big-endian or little-endian?

730

Can I initialize unions?

718

How can this be legal c?

751

How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

690

What should malloc(0) do?

722

What is the right type to use for boolean values in c?

714

How can I delete a file?

727

I came across some code that puts a (void) cast before each call to printf. Why?

815

What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

709

Array is an lvalue or not?

762

What is the difference between memcpy and memmove?

703


Post New C Questions

Un-Answered Questions { C }

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2786


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1726


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2293


What is operator precedence?

760


What is the use of typedef in structure in c?

633






When is a “switch” statement preferable over an “if” statement?

760


a value that does not change during program execution a) variabe b) argument c) parameter d) none

831


What is the benefit of using const for declaring constants?

699


How to declare a variable?

697


what is the role you expect in software industry?

1769


Explain about the constants which help in debugging?

960


What is a built-in function in C?

964


What are header files? What are their uses?

743


When can a far pointer be used?

686


Write a program of prime number using recursion.

723