C Interview Questions
Questions Answers Views Company eMail

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

Wipro, ME,

6 8317

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

ME,

4 8817

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

pspl, ME,

3 19766




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

ME,

13 13661

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

ME,

2 9006

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

ME,

3 7853

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

ME,

21 21889

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

ME,

17 11624




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

ME,

6 8319

what is the maximum no. of bytes calloc can allocate

Mphasis,

4 6176

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 12161

what is the use of using linked list and array?

TCS, Infosys,

10 7793

What is the diffences between Windows XP and Windows Visa

Aricent, FHF,

1 5443

The differences between Windows XP and Windows Visa

HCL,

8 5948

why should i select you?

Wipro,

21 12893


Post New C Questions






Un-Answered Questions { C }

Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

553


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

655


I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

1099


number of times a digit is present in a number

756


write a program in c language to print your bio-data on the screen by using functions.

5307






Write a progarm to find the length of string using switch case?

802


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1033


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

858


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

710


#include { printf("Hello"); } how compile time affects when we add additional header file .

646


i have a written test for microland please give me test pattern

1353


Why is event driven programming or procedural programming, better within specific scenario?

1166


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

776


How to implement a packet in C

1549


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

830