#1
| |||
| |||
![]()
Any buddy, please provide me the C Language Placement Paper………….. As per your request here I am sharing the C Language Placement Paper: 11. main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); } Answer:Compiler Error : Type mismatch in redeclaration of function display Explanation : In third line, when the function display is encountered, the compiler doesn't know anything about the function display. It assumes the arguments and return types to be integers, (which is the default type). When it sees the actual function display, the arguments and type contradicts with what it has assumed previously. Hence a compile time error occurs. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() For complete question paper download the attachment given below: Last edited by Gunjan; July 2nd, 2019 at 04:27 PM. |
#2
| |||
| |||
![]()
1-EXPLAIN THE HISTORY OF C LANGUAGE. WHAT ARE THE ADVANTAGES OF C LANGUAGE? 2-DIFFERENTIATE BETWEEN FORMAL PARAMETER AND ACTUAL PARAMETERS WITH EXAMPLE. 3-DESCRIBE ABOUT STATIC AND EXTERNAL VARIABLES. 4-DISTINGUISH BETWEEN PASS BY VALUE AND PASS BY REFERENCE WITH THE HELP OF AN EXAMPLE 5-DEFINE MACRO. HOW CAN WE DECLARE A MACRO STATEMENT? 6-WHAT IS THE USE OF FOPEN () AND FCLOSE () FUNCTION? LIST AND EXPLAIN DIFFERENT MODES FOR OPENING A FILE. |