Posts Tagged C

Hardest Programming Language

In my view the toughest programming language is C# and JAVA cuz they have very vast library and their code are tough enough.

Post comment according to your opinion about this topic:

Tags: , , , , , ,

Java’s Print similarities to C

As we know that java is made by the C programming. The java has many common features to C language. While we wants to print in java we usually use the following code.

System.out.println(statement1);
or
System.out.print(statement2);

But there is also the feature of printf in java which we used to do in C programming:

Syntax:

//In C language
printf("format_string", comma_separated_list_of_expressions);

//In JAVA
System.out.printf("format_string", separated_list_of_expressions);

For eg:

 
//In C we use
void main(){
int sum = 4;

printf("The sum is %d , sum);
}

which outputs like this in C :
c-out

But in Java Read the rest of this entry »

Tags: , , , ,