Learn C programming in Bengali
Aligning Output
Aligning Output
As you might have noticed in the previous section, all output is right-justified. In other words, by default, all output is placed on the right edge of the field, as long as the field width is longer than the width of the output.
Revisiting the printf() Function
Revisiting the printf() Function
The printf() function is the first C library function you used in this book to print out messages on the screen. printf() is a very important function in C, so it's worth it to spend more time on it.
Another Function for Writing: putchar()
Another Function for Writing: putchar()
C প্রোগ্রামিং এর putc() Function এর ব্যবহার
Using the putc() Function
The putc() function writes a character to the specified file stream, which, in our case, is the standard output pointing to your screen.
- Read more about C প্রোগ্রামিং এর putc() Function এর ব্যবহার
- Log in or register to post comments
- 24 views
C প্রোগ্রামিংয়ের getchar() Function এর ব্যবহার
Using the getchar() Function
The C language provides another function, getchar(), to perform a similar operation to getc(). More precisely, the getchar() function is equivalent to getc(stdin).
The syntax for the getchar() function is
- Read more about C প্রোগ্রামিংয়ের getchar() Function এর ব্যবহার
- Log in or register to post comments
- 79 views
C প্রোগ্রামিংয়ে getc() Function এর ব্যবহার
Using the getc() Function
The getc() function reads the next character from a file stream, and returns the character as an integer.
The syntax for the getc() function is
- Read more about C প্রোগ্রামিংয়ে getc() Function এর ব্যবহার
- Log in or register to post comments
- 53 views
C প্রোগ্রামিং এর double Data Type সম্পর্কে আলোচনা
The double Data Type
In the C language, a floating-point number can also be represented by another data type, called the double data type. In other words, you can specify a variable by the double keyword, and assign the variable a floating-point number.
- Read more about C প্রোগ্রামিং এর double Data Type সম্পর্কে আলোচনা
- Log in or register to post comments
- 131 views