What are Escape sequence characters?

Escape characters are sequence of characters that are converted to some another character which are difficult or impossible to print directly. Characters such as new lines, you cannot print a new line directly in any programming language by hitting enter key. To print new line an special character is given \n which is later converted … Read more

List of all format specifiers in C programming

In C programming we need lots of format specifier to work with various data types. Format specifiers defines the type of data to be printed on standard output. Whether to print formatted output or to take formatted input we need format specifiers. Format specifiers are also called as format string.

Read more

Introduction to Programming – Errors

Errors are the mistakes or faults in the program that causes our program to behave unexpectedly and it is no doubt that the well versed and experienced programmers also makes mistakes. Programming error are generally known as Bugs and the process to remove bugs from program is called as Debug/Debugging. There are basically three types … Read more

What are Tokens in programming

Smallest individual element of a program is called as Token. Everything you see inside a program is a token.

For example – Suppose an English sentence. “C language is an awesome language. C was developed by Dennis Ritchie at AT&T Bell labs in 1972.”

The above sentence is made of Alphabets (a-z A-Z), Blank spaces, Digits (0-9) and special characters (full stop in our case). These are building blocks or basic elements of our sentence. Similarly there are various basic programming elements that makes any program.

There are five types of tokens.

  1. Keyword
  2. Identifier
  3. Operator
  4. Separator
  5. Literal

Read more

Sending e-mails with attachment in C#

In previous post we saw how to send e-mails using C# in few simple steps. Here we will see how to add attachments to our messages. Know it: System.Net.Mail.Attachment : Used to attach any file to our MailMessage. GUI form: Implement it: using System; using System.ComponentModel; using System.Net.Mail; using System.Windows.Forms; namespace MailMe { public partial … Read more

Sending emails in C#

C# provides an easy solutions for sending mails in just few steps. Know it: Prior to main code file we first must look onto the classes .NET provides for sending mails and working with smtp protocol. All the mentioned classes are present under System.Net.Mail namespace. SmtpClient : Allows sending of emails using smtp protocol. MailMessage … Read more