السلام عليكم
خلال قرأتي لكتب السي خطرت على بالي بعض الاسئله اتمنى ان تساعدوني في الاجابه عليها
س1,,, ممكن شرح لهذه الدوال مع كتابه فائدتها :rolleyes: ؟؟؟
strcpy
strcat
strlen
strcmp
stdin
sscanf
س2... لاحظت ان الداله SScanf تأتي دوما بعد fgets هل هذا ضروري ؟؟؟
س3,,, هذا الشرح ما فهمته بالكتاب
first[4] = '\0';
The problem is that this method will work only for four-character names. We need a
general algorit hm to solve this problem. The length of this string is the index of the
end-of-string null character. The character before it is the one we want to get rid of.
So, to trim the string, we use the statement:
first[strlen(first)-1] = '\0';
ما الفائده من الخوارزميه ؟؟؟
س4... ما الفرق بين هذه المصفوفه
int matrix[2][4] =
{
{1, 2, 3, 4},
{10, 20, 30, 40}
};
و هذه
int matrix[2][4];
س5,,,, ما الاختلاف بين
number = 5;
result = number++;
و
number = 5;
result = ++number;
ارجوا الاجابه على الاسئله مع توضيح فائده كل من هذه الدوال :rolleyes:
اعرف ان طلباتي كثيره لكن تحملوني :lol: