what information does the header files contain?
Answers were Sorted based on User's Feedback
Answer / naveena
header file is a file containing C declarations and macro
definitions to be shared between several source files
| Is This Answer Correct ? | 18 Yes | 5 No |
Answer / mohancvk
the header files consists of file-inclusions,macro
definitions and declarations which get replaced with the
textual source code at preprocessor level ie., before
compilation process.
| Is This Answer Correct ? | 11 Yes | 4 No |
Answer / shashi
In computer programming, particularly in the C and C++
programming languages, a header file or include file is a
file, usually in the form of source code, that a compiler
automatically includes when processing another source file.
Typically, programmers specify the inclusion of header files
via compiler directives at the beginning (or head) of the
other source file.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / dips
Header files contain the definations of the functions that
are to be used in the program.In order to recognise the
defined functions ex, printf, scanf etc you need to define
the header file STDIO.h where the defination of these
functions are declared.Which makes writting of the program
very easy
| Is This Answer Correct ? | 16 Yes | 12 No |
Answer / vivek k dixit
A header file contains #define,structure,union and enum
declarations,it also contains global variable and external
funtion declarations.The # include directive should be used
to pull in header files.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / avinandan
Header files contain line- and field-oriented ASCII text
It contain declerations,macro definitions.
| Is This Answer Correct ? | 0 Yes | 7 No |
I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }
How can a number be converted to a string?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is a memory leak? How to avoid it?
What is static volatile in c?
What is include directive in c?
to write a program, that finds the minimum total number of shelves, including the initial one, required for this loading process. The packets are named A, B, C, D, E …….. Any numbers of packets with these names could be kept in the shelf, as in this example: [ZZLLAAJKRDFDDUUGGYFYYKK]. All packets are to be loaded on cars. The cars are lined in order, so that the packets could be loaded on them. The cars are also named [A, B, C, D, E,………….].
Write any data structure program (stack implementation)
Can we declare function inside main?
How can I change the size of the dynamically allocated array?
I need previous papers of CSC.......plz help out by posting them.......
What is the use of void pointer and null pointer in c language?