Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

C Interview Questions
Questions Answers Views Company eMail

What is Heap?

3 7891

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2258

how to add numbers without using arithmetic operators.

TCS,

14 16374

if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?

Wipro,

9 11432

a 'c' program to tell that the set of three coordinates lie on a same line

Persistent,

3 13889

write a program to print sum of each row of a 2D array.

4 26473

write a program to arrange the contents of a 1D array in ascending order

4 18952

What will be the output of x++ + ++x?

MBT, Religare,

20 52026

write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer)

ADITI, iFlex, Infosys, Oracle, TCS, Unicops, Wipro,

26 80475

how is the examination pattern?

Wipro,

1976

Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

NDS,

3 8308

main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }

NDS, TCS,

22 33027

#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

CDAC, GATE, NDS, TCS,

14 47362

fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }

NDS,

17 21481

#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

NDS,

6 10842


Post New C Questions

Un-Answered Questions { C }

Hi can anyone tell what is a start up code?

2028


What are the types of type qualifiers in c?

1046


Is c compiled or interpreted?

1145


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 ) { }

2633


Explain how can I right-justify a string?

1010


When would you use a pointer to a function?

1010


write a program to print largest number of each row of a 2D array

2280


What is NULL pointer?

1048


Which is better malloc or calloc?

1069


What is pass by reference in functions?

803


What does the error message "DGROUP exceeds 64K" mean?

1182


How can I delete a file?

1022


How can I read data from data files with particular formats?

1013


What are variables and it what way is it different from constants?

1205


Can you tell me how to check whether a linked list is circular?

1352