3.36 (Printing the Decimal Equivalent of a Binary Number) Input an integer containing only 0s and 1s (i.e., a “binary” integer) and pri...
Explain about Promotion and Explicit Conversion in C
Promotion Conversion Promotion Conversion adalah tipe pengkonversian type data sesuai dengan tipe data operan. Dengan kata lain, promotio...
Explain about Signed and Unsigned data type
Signed variabel adalah sebuah variabel yang nilainya/range nya selalu lebih dari nol. Yang artinya selalu bernilai positif. Sedangkan Unsi...
Explain these: {auto,const,static,register}
Auto Syntax auto digunakan untuk membuat sebuah variabel lokal. Auto juga digunakan untuk membuat sebuah variabel sementara/temporer, y...
Explain typical C program development environment
Pada umumnya system C terdiri menjadi beberapa bagian: pengembangan program, bahasa pemrograman, dan standard library C. Program C harus m...
Exercise 3.46 (Deitel: C How to Program 6th Edition)
a) Write a program that reads a nonnegative integer and computes and prints its factorial. #include <stdio.h> int main(){ int f...
Exercise 3.42 (Deitel: C How to Program 6th Edition)
Write a program that reads the radius of a circle (as a float value) and computes and prints the diameter, the circumference and the area. ...
Exercise 3.38 - 3.40 (Deitel: C How to Program 6th Edition)
3.38 Write a program that prints 100 asterisks, one at a time. After every tenth asterisk, your program should print a newline charact...
Exercise 3.34, 3.35, 3.36 (Deitel: C How to Program 6th Edition)
3.34 (Hollow Square of Asterisks) Modify the program you wrote in Exercise 3.33 so that it prints a hollow square. C Program: ...
Exercise 3.29 & 3.30 (Deitel: C How to Program 6th Edition)
3.29 What does the following program print? #include <stdio.h> int main( void ) { int count = 1; /* initialize count */ wh...
Exercise 3.17 - 3.21 (Deitel: C How to Program 6th Edition)
3.17 (Gas Mileage) Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls ...
Exercise 3.14 (Deitel: C How to Program 6th Edition)
Write a single pseudocode statement that indicates each of the following: a) Display the message "Enter two numbers". b) Assign...
Exercise 3.13 (Deitel: C How to Program 6th Edition)
What does the following program print? 1 #include <stdio.h> 2 3 int main( void ) 4 { 5 int x = 1, total = 0, y; 6 7 while ( x <=...
Exercise 3.11 (Deitel: C How to Program 6th Edition)
Identify and correct the errors in each of the following. [Note: There may be more than one error in each piece of code.] a) if ( age ...
Operators in C program
Assignment operators Ada beberapa operator yang bisa kita gunakan di dalam melakukan perhitungan di dalam program C. Beberapa operator ...