coding
coding
h>
int main() {
int num;
return 0;
}
b, #include <stdio.h>
int main() {
int result = 5 + (6 + 2) / + 3;
printf("Result: %d\n", result);
return 0;
}
10 a, #include <stdio.h>
int main() {
char id[10], name[50], status;
float basicPay, da, hra, totalSalary;
b,
Memory Efficiency: Choosing the correct data type ensures that the program uses
memory efficiently. For example, using an int when a char would suffice wastes
memory.
Performance: Appropriate data types can improve the performance of the program. For
instance, using float for integer calculations can slow down the program.
Accuracy: Correct data types ensure that calculations are accurate. Using an int
for floating-point calculations can lead to loss of precision.
Readability and Maintainability: Using the correct data types makes the code more
readable and easier to maintain.