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 3664

what is diffrence between string and character array?

1 3537

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

1430

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 6770

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

Infosys, TCS, Tech Mahindra,

31 55225

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

2 7403

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 4641

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

3 4908

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

3 4545

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 5933

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 5008

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 3805

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 7021

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

4 7110

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

2 3508


Post New C Questions

Un-Answered Questions { C }

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1524


What is the use of parallelize in spark?

573


What is the difference between variable declaration and variable definition in c?

564


Difference between constant pointer and pointer to a constant.

610


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1699






a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

637


How many keywords (reserve words) are in c?

618


Explain threaded binary trees?

673


Can we use visual studio for c?

546


What is const and volatile in c?

565


Explain what are compound statements?

603


Can we access array using pointer in c language?

640


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.

1722


What is calloc()?

627


What is keyword with example?

635