C Interview Questions
Questions Answers Views Company eMail

Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com

8 14553

what is array?

HCL, Amdocs,

63 35509

Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We Are Student “ Output: "We Are Student"

1 2710




Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We.....Are....Student “ Note: one .=1 Space Output: "We Are Student"

IBM,

6 7177

1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

HCL, Qualcomm,

9 10385

1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?

Qualcomm,

3 7772

what is the use of #pragma pack, wer it is used?

Wipro,

2 4962

What is structure padding & expalain wid example what is bit wise structure?

1 4735




explain memory layout of a C program

2 13811

what are the compilation steps? ( i want inside the compiler )

2 6304

what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 4757

int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.

Global Edge,

14 12217

to find out the reverse digit of a given number

TCS, Microsoft, Infosys, Wipro,

6 13425

write a own function to compare two strings with out using stringcomparition function?

Sasken, LG Soft,

6 7828

write a programme that inputs a number by user and gives its multiplication table.

2 1995


Post New C Questions






Un-Answered Questions { C }

Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

2778


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

1079


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

1925


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

776


to find the closest pair

965






main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

460


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

1194


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

9884


Hi can anyone tell what is a start up code?

812


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

686


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

4120


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

2812


what is reason of your company position's in india no. 1.

963


program to convert a integer to string in c language'

1039


what is the role you expect in software industry?

888