-
-
-
-
-
Calendar Program
Develop a program that receives the month and year from the keyboard as integers and prints the calendar in the following format March 2006 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 ...
-
What is a static function?
A static function is a function whose scope is limited to the current source file. Scope refers to the visibility of a function or variable. If the function or variable is visible outside of the current source file, it is said to have global, or external, scope. If the function or variable is not visible outside of the current source file, it is said to have local, or static, scope.
-
-
-
What is pseudo code ?
Explain with an example and how to develop the program
-
-
-
-
-
-
-
-
What is a macro, and how do you use it?
A macro is a preprocessor directive that provides a mechanism for token replacement in your source code. Macros are created by using the #define statement. Here is an example of a macro: Macros can also utilize special operators such as the stringizing operator (#) and the concatenation operator (##).The stringizing operator can be used to convert macro parameters to quoted strings, as in the...
-
-
Can static variables be declared in a header file?
You can’t declare a static variable without defining it as well (this is because the storage class modifiers static and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause each source file that included the header file to have its own private copy of the variable, which is probably not what was intended.
-
Pascal Triangle
What is the C program for Pascal Triangle 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 5 1
C Interview Questions
Ans