function as an argument in another function
Passing a function to another function means it passes the return value to the function. Example Output
C Programming
Passing a function to another function means it passes the return value to the function. Example Output
sprintf composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer...
here we are showing a sample program for displaying a circle on console with the help of Turbo C.
Three dimensional arrays are the arrays which form n groups of n rows and n columns. Syntax as : Example Output 21
Lvalue : They are generally left values of expression, and are on the left side of the expression. Rvalue : They are generally right values of expression, and are on the right side of...
#include <file> This variant is used for system header files. It searches for a file named file in a standard list of system directories. Example : #include “file” This variant is used for header...
__TIME__ macro is used to print system time in C/C++ language. This macro expands to a string constant that describes the time at which the preprocessor is being run. The string constant contains eight...
__DATE__ macro is used to print system date in C/C++ language. This macro expands to a string constant that describes the date on which the preprocessor is being run. The string constant contains eleven...
We are opening first file firstFile.txt secondly file secondFile.txt and then reading line by line both of these files and writing a line of first file to third file and then contents of first...
Example Output Now this doesn’t erase all the characters in the string, but since the first character is now a termination character the string looks empty to your program. If you want to erase...
The standard predefined MACRO __FILE__ available in C shows the full path to the file.
In the programming languages C and C++, the unary operator sizeof is used to calculate the size of any datatype. Example Output on a Window Operating System
Whenever we have to find maximum and minimum limit of various Data types, we may use INT_MAX platform-dependent constants proposed by ANSI. So INT_MAX find out Constant Maximal value which can be stored in...
Functions can also return string values in C/C++. String is a constant variable so we have used const keyword for functions declaration and definition. Example Output