C Interview Questions
Questions Answers Views Company eMail

what is the difference between #include and #include "stdio.h" ?

3 5557

Why preprocessor should come before source code?

2 2316

What is a far pointer?What is the utility?

4 2810




Difference between null pointer and dangling pointer?

Wipro, GE,

7 14879

1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.

4 3101

what are the languages used in c#?

Infosys,

3 2769

write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 3321

write a 'c' program to sum the number of integer values

8 10861




How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)

Subex, iLantus,

1 5285

Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)

Subex,

6 8472

hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

TCS,

874

I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....

2 3220

Total of how many functions are available in c?

3 3010

size maximum allocated by calloc()

DELL,

3 5615

we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

Google,

4 4155


Post New C Questions






Un-Answered Questions { C }

what are non standard function in c

662


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

714


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1581


how to write a c program to print list of fruits in alpabetical order?

705


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

8303






Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

2851


can anyone please tell about the nested interrupts?

851


if p is a string contained in a string?

684


Write a progarm to find the length of string using switch case?

825


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

1940


How to establish connection with oracle database software from c language?

924


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

720


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2102


number of times a digit is present in a number

787


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1052