Afaq Ahmad Khan

Simple Interest Program in Java

Simple Interest = (Princple * Rate * Time)/100

Marks Average Program in Java

Marks Average Program in Java

Fahrenheit to Celsius Program in Java

Fahrenheit to Celsius Program in Java

Operators Program in Java

Operators Program in Java, Java Unary Operator Example: ++ and –,Java Arithmetic Operator Example, Java AND Operator Example: Logical && and Bitwise &

Variables Initialization Program in Java

Variables Initialization Program in Java

Hello World Program in Java

How to create Hello World Program in Java.

Command line arguments in C Language

It is possible to pass some values from the command line to your C programs when they are executed. These values are called command line arguments and many times they are important for your program especially when you want to control your program from outside instead of hard coding those values inside the code. The […]

Defining and calling macros in C Language

A macro is a segment of code which is replaced by the value of macro. Macro is defined by #define directive. There are two types of macros: Object-like Macros Function-like Macros Object-like Macros The object-like macro is an identifier that is replaced by value. It is widely used to represent numeric constants. For example:    #define PI 3.14 […]

Standard C preprocessors in C Language

The C Preprocessor is not a part of the compiler, but is a separate step in the compilation process. In simple terms, a C Preprocessor is just a text substitution tool and it instructs the compiler to do required pre-processing before the actual compilation. We’ll refer to the C Preprocessor as CPP. All preprocessor commands […]

File I/O functions in C Language

The last chapter explained the standard input and output devices handled by C programming language. This chapter cover how C programmers can create, open, close text or binary files for their data storage. A file represents a sequence of bytes, regardless of it being a text file or a binary file. C programming language provides […]

1 24 25 26 27 28 34