C Interview Questions
Questions Answers Views Company eMail

WAP – represent a char in binary format

Motorola, Wipro,

4 7177

what is memory leak?

3 6278

what is the difference between and "stdio.h"

Invendis, Kanbay, Mastek, MathWorks,

14 53728

which will be first in c compiling ,linking or compiling ,debugging.

Sonata,

3 7407

Write a program in C to convert date displayed in gregorian to julian date

HCL, Wipro,

2296

difference between memcpy and strcpy

1 12010

What's the best way to declare and define global variables?

7 12645

What does extern mean in a function declaration?

4 36373

How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 9777

What's wrong with "char *p = malloc(10);" ?

4 11254

What is the difference between char a[] = "string"; and char *p = "string"; ?

Adobe, Honeywell, TCS,

14 40194

How do I initialize a pointer to a function?

2 10802

What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?

3 8798

Can I pass constant values to functions which accept structure arguments?

2 7568

Why doesn't the code "a[i] = i++;" work?

4 11903


Post New C Questions

Un-Answered Questions { C }

What does do in c?

599


What is ponter?

761


What are the 5 organizational structures?

555


What are header files why are they important?

570


How to explain the final year project as a fresher please answer with sample project

459






What is the c value paradox and how is it explained?

565


how to construct a simulator keeping the logical boolean gates in c

1714


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

659


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

628


What is the purpose of & in scanf?

586


What does struct node * mean?

586


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1559


Explain how can I make sure that my program is the only one accessing a file?

612


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4529


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1284