C Interview Questions
Questions Answers Views Company eMail

can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?

2 2371

what is diffrence between string and character array?

1 2423

GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

685




i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement

5 3982

what is the value of b if a=5; b=++a + ++a

TCS, Infosys, Tech Mahindra,

28 19555

Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 5899

create a C program that displays one z,two y's,three x's until twenty six A's. plzz answer i need it tomorrow.

4 2526

what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }

3 2992




union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }

3 2751

extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }

2 3334

Write a program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.

4 2720

A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #define MACRO 10 printf("in test function %d", MACRO); } main() { printf("in main %d",MACRO); func(); testfunc(); getch(); }

Wipro,

2 2264

typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?

1 5106

Can i use Two or More Main Funtion in any C program.?

4 5072

Why the below program throughs error during compilation? #include #include enum { ZERO, ONE, TWO, }; main() { printf("%d",&TWO); getch(); }

2 1982


Post New C Questions






Un-Answered Questions { C }

One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

1325


how to count no of words,characters,lines in a paragraph.

3112


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

53


how to make a scientific calculater ?

745


what do u mean by Direct access files? then can u explain about Direct Access Files?

931






why we wont use '&' sing in aceesing the string using scanf

1031


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

157


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

850


How to delete a node from linked list w/o using collectons?

1355


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

741


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1135


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

824


write a progrmm in c language take user interface generate table using for loop?

805


how could explain about job profile

721


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

1499