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 3648

what is diffrence between string and character array?

1 3524

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

1420

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 6746

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

Infosys, TCS, Tech Mahindra,

31 54994

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

2 7392

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 4608

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

3 4880

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

3 4516

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 5912

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 4960

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 3776

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 7008

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

4 7090

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

2 3491


Post New C Questions

Un-Answered Questions { C }

How was c created?

581


Explain how are portions of a program disabled in demo versions?

640


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

639


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1645


What is wrong in this statement?

595






Can two or more operators such as and be combined in a single line of program code?

797


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

636


How do you determine whether to use a stream function or a low-level function?

634


a program that can input number of records and can view it again the record

1474


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1441


What are qualifiers in c?

560


What is a keyword?

738


What is pointer and structure in c?

556


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2640


4. main() { int c=- -2; printf("c=%d",c); }

1360