C Interview Questions
Questions Answers Views Company eMail

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none

Trident,

7 10202

what is disadvantage of pointer in C

Tech Mahindra,

13 18533

ABCDCBA ABC CBA AB BA A A

TCS,

4 9967




which one is highest Priority in c? a)=,b)+,c)++,d)==

4 2995

which one low Priority in c? a)=,b)++,c)==,d)+

10 3799

What are data breakpoints?

Adobe,

3 6225

What are bit fields? What is their use?

Adobe,

2 4011

Write code for atoi(x) where x is hexadecimal string.

Adobe,

5 21796




Write code for finding depth of tree

Adobe,

2 3546

Two's compliment of -5

Adobe,

4 5449

CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.

Adobe,

9 6212

what's the return value of malloc()

9 8982

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...

8360

What are the average number of comparisons required to sort 3 elements?

DRDO,

2 4522

Is it possible to run a c program without using main?If yes HOW??

Wipro,

13 10465


Post New C Questions






Un-Answered Questions { C }

program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

1749


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

742


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

10475


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1958


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

804






cavium networks written test pattern ..

2327


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1042


write a program to concatenation the string using switch case?

829


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

994


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1055


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

912


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

270


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

875


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?

668


how can use subset in c program and give more example

768