Featured Posts

Writing Website Scrapers in PHPWriting Website Scrapers in PHP This article discusses about how to write a website scraper using PHP for web site data extraction. The concepts taught can be applied and programmed in Java, C#, etc. Basically any language that has a...

Readmore

12 common programming mistakes to avoid12 common programming mistakes to avoid Programming is an art and science and like all art and science the only way to learn is from mistakes. I have made many... and I would like to share with you the mistakes that I have made over my journey...

Readmore

7 habits of highly effective freelance programmers7 habits of highly effective freelance programmers I have developed these based on my freelancing experience. Though I have discontinued freelancing, but would like to share my practices with you. These are basic practices and have been developed over...

Readmore

  • Prev
  • Next

C Tutorial - Operators in C

Posted on : 25-05-2008 | By : admin | In : C Programming, C Tutorials

7

If you're new here, you may want to subscribe to my Newsletter. Thanks for visiting!

An operator is a symbol that operates on a certain data type and produces the output as the result of the operation. In C, you can combine various operators of similar or different categories and perform an operation. In this case the C compiler tries to solve the expression as per the rules of precedence.

C Tutorial - Constants, Variables and Data Type Modifiers

Posted on : 25-05-2008 | By : admin | In : C Programming, C Tutorials

1

Constant

A constant can be defined as “a quantity that does not change during the execution of a program”.

#include <stdio.h>
 
void main(void)
{
        int a = 10;
        printf(%d”,a);
}

Program Output
10

Here we are declaring a variable a with its initial value 10. 10 here is an integer constant and every time you try to execute this program, the output will always be 10.

C Tutorial - Fundamental Data Types

Posted on : 22-05-2008 | By : admin | In : C Programming, C Tutorials

0

In this C Tutorial we will learn what Fundamental Data Types are and how to use them.

We develop programs to accept an input from the user and then run the input through a series of processes and produce the output on screen or on the printer, etc.

Introduction to C Programming

Posted on : 18-05-2008 | By : admin | In : C Programming, C Tutorials

2

As a programming language, C is rather like Pascal or Fortran. Values are stored in variables. Programs are structured by defining and calling functions. Program flow is controlled using loops, if statements and function calls. Input and output can be directed to the terminal or to files. Related data can be stored together in arrays or structures.

Of the three languages, C allows the most precise control of input and output. C is also rather more terse than Fortran or Pascal. This can result in short efficient programs, where the programmer has made wise use of C’s range of powerful operators. It also allows the programmer to produce programs which are impossible to understand.

Programmers who are familiar with the use of pointers (or indirect addressing, to use the correct term) will welcome the ease of use compared with some other languages. Undisciplined use of pointers can lead to errors which are very hard to trace. This course only deals with the simplest applications of pointers.

It is hoped that newcomers will find C a useful and friendly language. Care must be taken in using C. Many of the extra facilities which it offers can lead to extra types of programming error. You will have to learn to deal with these to successfully make the transition to being a C programmer.

The course aims to introduce programmers to the C language. Previous programming experience is assumed, so we can quickly progress to looking at the features of C and their uses. Students with little programming experience will need to do some homework in order to keep up with the lectures.

Writing Website Scrapers in PHP

Posted on : 26-02-2008 | By : admin | In : PHP, PHP Code Examples, Programming

16

This article discusses about how to write a website scraper using PHP for web site data extraction. The concepts taught can be applied and programmed in Java, C#, etc. Basically any language that has a powerful string processing capability. This article will teach you the basics of website scraping. The article will further cover a tutorial to find web ranking from Yahoo.com search engine.

Will “Made in India” Software Products Become a Reality?

Posted on : 20-02-2008 | By : admin | In : Business, General, Management

8

A discussion with my friends brought about this topic. The discussion initially started with talks on the condition of Software Exports and the amount of revenue it brings to the Indian Economy as a whole. Though the Software Exports business (by way of consulting projects) has been good over the past so many years and have made billions of dollars for companies like Infosys, TCS, Wipro, etc., the question that we all had was about the future of the Software Exports business.

7 habits of highly effective freelance programmers

Posted on : 18-02-2008 | By : admin | In : C Programming, Management, PHP Class Examples, PHP5 OOPS Tutorials, Programming

8

I have developed these based on my freelancing experience. Though I have discontinued freelancing, but would like to share my practices with you. These are basic practices and have been developed over time with experience (good and bad). Please feel free to leave your experiences and comment on this article.

PHP 5 Tutorial - Handling Exceptions in PHP5

Posted on : 14-02-2008 | By : admin | In : PHP, PHP Class Examples, PHP Code Examples, PHP Tutorials, PHP5 OOPS Tutorials

2

In this tutorial we will cover the following:

  • What is an exception?
  • The use of a try…catch block
  • Anatomy of PHP5 Exception class
  • Extending the Exception class
  • A note on unhanded exceptions

PHP 5 Tutorial - Final Class and Methods

Posted on : 14-02-2008 | By : admin | In : PHP, PHP Class Examples, PHP Tutorials, PHP5 OOPS Tutorials

5

In this PHP tutorial we will understand the following:

  • Meaning of Final Class
  • Meaning of Final Method
  • When to declare a class as final
  • When to declare a method as final

PHP 5 Tutorials - Static Data Members and Methods

Posted on : 12-02-2008 | By : admin | In : PHP, PHP Class Examples, PHP Tutorials, PHP5 OOPS Tutorials

1

In this tutorial you will learn all about static data members and methods

  • Meaning of static data members
  • Meaning of static methods
  • Defining static data members in PHP5
  • Defining static methods in PHP5
  • Accessing static data members in PHP5
  • Accessing static methods in PHP5
  • Rules to keep in mind for static methods