C Interview Questions
Questions Answers Views Company eMail

main() { clrscr(); } clrscr();

Wipro, ME,

6 8519

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

ME,

4 9013

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

pspl, ME,

3 20216




main() { int i=400,j=300; printf("%d..%d"); }

ME,

13 13925

main() { char *p; p="Hello"; printf("%c\n",*&*p); }

ME,

2 9273

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

ME,

3 8111

void main() { int i=5; printf("%d",i++ + ++i); }

ME,

21 22248

void main() { int i=5; printf("%d",i+++++i); }

ME,

17 11777




#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

ME,

6 8554

what is the maximum no. of bytes calloc can allocate

Mphasis,

4 6237

how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

RMSI,

19 12272

what is the use of using linked list and array?

TCS, Infosys,

10 7918

What is the diffences between Windows XP and Windows Visa

Aricent, FHF,

1 5489

The differences between Windows XP and Windows Visa

HCL,

8 6037

why should i select you?

Wipro,

21 13042


Post New C Questions






Un-Answered Questions { C }

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


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

1503


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1013


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

187


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

1377






what are non standard function in c

662


what value is returned to operating system after program execution?

838


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

10116


 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.

1011


Why we not create function inside function.

929


how logic is used

739


write a programming in c to find the sum of all elements in an array through function.

955


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

2090


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

787


to find the closest pair

1012