7. How can I convert a number to a string? The standard C library provides several functions for converting numbers of all formats (integers, longs, floats, and so on) to …
Interview Questions and Answers
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language String Interview Questions and Answers For Freshers Part-3
by Sby S5. How can I pad a string to a known length? Padding strings to a fixed length can be handy when you are printing fixed-length data such as tables or …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language String Interview Questions and Answers For Freshers Part-2
by Sby S3. How can I remove the leading spaces from a string? The C language does not provide a standard function that removes leading spaces from a string. It is easy, …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language String Interview Questions and Answers For Freshers Part-1
by Sby S1. What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used? The strcpy() function is designed to work exclusively with strings. …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Functions Interview Questions and Answers For Freshers Part-3
by Sby S9. Is using exit() the same as using return? No. The exit() function is used to exit your program and return control to the operating system. The return statement is …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Functions Interview Questions and Answers For Freshers Part-2
by Sby S5. Should a function contain a return statement if it does not return a value? In C, void functions (those that do not return a value to the calling function) …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Functions Interview Questions and Answers For Freshers Part-1
by Sby S1. When should I declare a function? Functions that are used only in the current source file should be declared as static, and the function’s declaration should appear in the …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Data Files Interview Questions and Answers For Freshers Part-3
by Sby S9. How do you list a file’s date and time? A file’s date and time are stored in the find_t structure returned from the _dos_findfirst() and_dos_findnext() functions. The date and …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Data Files Interview Questions and Answers For Freshers Part-2
by Sby S5. Can stdout be forced to print somewhere other than the screen? Although the stdout standard stream defaults to the screen, you can force it to print to another device …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Data Files Interview Questions and Answers For Freshers Part-1
by Sby S1. If errno contains a nonzero number, is there an error? The global variable errno is used by many standard C library functions to pass back to your program an …