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 2394

what is diffrence between string and character array?

1 2453

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

702




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 4033

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

TCS, Infosys, Tech Mahindra,

28 20195

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

2 5930

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 2561

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

3 3022




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

3 2789

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 3367

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 2763

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 2299

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 5173

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

4 5103

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

2 2019


Post New C Questions






Un-Answered Questions { C }

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

568


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.

996


code for replace tabs with equivalent number of blanks

806


can we have joblib in a proc ?

930


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1030






Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

834


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

709


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

226


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

694


In which layer of the network datastructure format change is done

522


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1101


write a program to rearrange the array such way that all even elements should come first and next come odd

980


Why we not create function inside function.

950


number of times a digit is present in a number

805


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

550