C Interview Questions
Questions Answers Views Company eMail

who will call your main function in c under linux?

2 3813

Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

MIT, TCS,

12 20863

What is the difference between null pointer and void pointer

CTS, Manforce, MAQ Software,

9 34844




why r u join this company? give solid resons.

TCS, IBM, Infosys,

16 17062

Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 9562

what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???

NSN,

2 4595

main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason

CSC,

6 6633

plssssss help !!....using array.. turbo c.. create a program that will accept number of words to be consored. .a word must not exceed 10 characters long .the text to be entered will be no longer than 200 characters .there will be no 10 words example: enter number of words to be censor: 5 enter words to censor: windows office microsoft bill gates enter text to censor: bill gates founded microsoft and makes office and windows sample output: founded and makes and

1 3874




number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 4271

Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)

2 4393

Convert the following expression to postfix and prefix (A+B) * (D-C)

Satyam,

3 4732

plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 3037

plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 3069

plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .

3 4066

plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 1881


Post New C Questions






Un-Answered Questions { C }

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.

1466


Can you write the algorithm for Queue?

762


what are # pragma staments?

768


Hai what is the different types of versions and their differences

720


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

1304






Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1658


can we change the default calling convention in c if yes than how.........?

1204


why return type of main is not necessary in linux

888


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

2499


what is the basis for selection of arrays or pointers as data structure in a program

2949


Without Computer networks, Computers will be half the use. Comment.

928


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

833


write a program to display all prime numbers

672


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

765


what is bit rate & baud rate? plz give wave forms

722