Explain how can I pad a string to a known length?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Why is not a pointer null after calling free?

0 Answers  


can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?

2 Answers  


To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.

4 Answers   Aricent,


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

0 Answers  


What is the difference between arrays and pointers?

0 Answers  






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

0 Answers   Celstream,


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

0 Answers  


What is a C array and illustrate the how is it different from a list.

1 Answers   Amazon,


What is the difference between constant pointer and constant variable?

0 Answers   NIIT,


main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }

1 Answers   CodeChef,


Write a program to print distinct words in an input along with their count in input in decreasing order of their count

0 Answers  


Can we write a program without main() function?

9 Answers  


Categories