Lect07-C Fundamentals PDF
Lect07-C Fundamentals PDF
Lect07-C Fundamentals PDF
Keywords - lowercase
Keywords - lowercase
Constants:
Fixed values that the program cannot alter during its execution
Input: 3 4 u
Output: x = 3, y = 4.000000, ch = u
Dr. Odelu Vanga (BITS-Pilani Hyderabad) CS F111 January 28, 2020 12 / 36
Syntax of printf() and scanf()
printf(formatString, list-of-variables);
printf(formatString, list-of-variables);
printf(formatString, list-of-variables);
printf(formatString, list-of-variables);
scanf(formatString, list-of-addresses-of-variables);
scanf(formatString, list-of-addresses-of-variables);
scanf(formatString, list-of-addresses-of-variables);
scanf(formatString, list-of-addresses-of-variables);
scanf(formatString, list-of-addresses-of-variables);
Scope of Variable
accessible
throughout program
within the block
2 + 2 = 4, but ‘2‘ + 2 = 52 ?
2 + 2 = 4, but ‘2‘ + 2 = 52 ?
Thank You