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

#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

0 Answers  


When should volatile modifier be used?

0 Answers  


What is pointer to pointer in c?

0 Answers  


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

0 Answers  


Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

4 Answers   Accenture,






What is bubble sort in c?

0 Answers  


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

6 Answers   LG Soft, Sasken,


Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?

1 Answers  


What does the message "warning: macro replacement within a string literal" mean?

1 Answers  


What are the restrictions of a modulus operator?

0 Answers  


How can a process change an environment variable in its caller?

0 Answers  


What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?

1 Answers  


Categories