C ভাষায়, হেডার ফাইলগুলিতে পূর্বনির্ধারিত স্ট্যান্ডার্ড লাইব্রেরি ফাংশনগুলির সেট থাকে। প্রোগ্রামে ".h" এক্সটেনশন সহ হেডার ফাইলগুলিকে অন্তর্ভুক্ত করতে "#include" প্রিপ্রসেসিং নির্দেশিকা ব্যবহার করা হয়৷
এখানে একটি টেবিল যা কিছু হেডার ফাইল C ভাষায় প্রদর্শন করে,
| Sr.No. | হেডার ফাইল এবং বর্ণনা |
|---|---|
| 1 | stdio.h ইনপুট/আউটপুট ফাংশন |
| 2 | conio.h কনসোল ইনপুট/আউটপুট ফাংশন |
| 3 | stdlib.h সাধারণ ইউটিলিটি ফাংশন |
| 4 | math.h গণিত ফাংশন |
| 5 | string.h স্ট্রিং ফাংশন |
| 6 | ctype.h চরিত্র হ্যান্ডলিং ফাংশন |
| 7 | time.h তারিখ এবং সময় ফাংশন |
| 8 | float.h ফ্লোট ধরনের সীমা |
| 9 | limits.h মৌলিক ধরনের আকার |
| 10 | wctype.h বিস্তৃত অক্ষর ডেটাতে থাকা প্রকার নির্ধারণের ফাংশন। |
এখানে C ভাষায় হেডার ফাইলের একটি উদাহরণ দেওয়া হল,
উদাহরণ
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main() {
char s1[20] = "53875";
char s2[10] = "Hello";
char s3[10] = "World";
int res;
res = pow(8, 4);
printf("Using math.h, The value is : %d\n", res);
long int a = atol(s1);
printf("Using stdlib.h, the string to long int : %d\n", a);
strcpy(s2, s3);
printf("Using string.h, the strings s2 and s3 : %s\t%s\n", s2, s3 );
return 0;
} আউটপুট
এখানে আউটপুট −
Using math.h, The value is : 4096 Using stdlib.h, the string to long int : 53875 Using string.h, the strings s2 and s3 : World World