1. What is indirection? If you declare a variable, its name is a direct reference to its value. If you have a pointer to a variable, or any other object …
C Programming
- 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-5
by Sby S9. How can you tell whether two strings are the same? The standard C library provides several functions to compare two strings to see whether they are the same. One …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language String Interview Questions and Answers For Freshers Part-4
by Sby S7. 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 …
- 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 …