 |
Hello every member of go4expert forum. I have something to share with you all. I have successfully developed a date program which prompt a user to enter a date(12/12/2005) and return the day of week(tuesday).
#ifndef CONVERTER_H_
#define CONVERTER_H_
struct U_Days
{
int days;
}u_days;
...
By Peter_APIIT
Last Message By Peter_APIIT
|
2 3,962 |
 |
The article discusses about all the number formats viz Binary, Decimal, Octal, Hex and BCD (Binary coded decimal) and conversion from Decimal to Binary, Octal and Hex and also the reverse conversion.
Binary
A numbering system based on 2 in which 0 and 1 are the only available digits.
...
By shabbir
Last Message By gatsbycollege
|
28 67,221 |
 |
Introduction
This artcile talks about Design By Contract Technique with an example to show how it can be used in an Application.
Background
Most application problems arise because of inappropriate handling of data obtained from external systems that could be a application user, remote...
By Mridula
Last Message By zim22
|
9 4,783 |
 |
Article is originally written by Zeeshan Amjad
Introduction
Here I am going to give a detail about Recursion in C++. Definition: Recursion is the process where a function is called itself but stack frame will be out of limit because function call will be infinite times. So a termination...
By asadullah.ansari
Last Message By zamjad
|
18 7,311 |
 |
Networking is all about transmitting messages from one node to another. The simplest example can be to transmit "Hello World" from one computer to another. Socket programming in C/C++ has already been covered. Today we will see how to check if the transmitted data has any errors.
There are many...
By blitzcoder
Last Message By shabbir
|
1 3,086 |
 |
Continuation of Developing Linux Utility like 'ls' in C series. In the first part we studied a code that was developed to behave like a basic ls utility. Here in this part I have extended the code to give output in alphabetical order.
The code
Here is the code :
...
By poornaMoksha
|
0 1,370 |
 |
In this article we will extend our code to print more comprehensive information about a file/directory in a directory. Please Refer
Developing Linux Utility like 'ls' in C
Developing Linux Utility - Part II Arranging Output in Alphabetical Order
Example
$ ls -l
total 148 ...
By poornaMoksha
Last Message By joschmuck
|
1 1,798 |
 |
Most of the people working on Linux must have used the basic command 'ls'. I use it many times a day. It is a very useful command when it comes to displaying the contents of a directory and their properties. For those few who have still not used 'ls' its high time now, go to its man page, study it...
By poornaMoksha
|
0 1,824 |
 |
I recently faced a problem regarding these 2 Escape Sequences. So, I thought I should share the difference between these two to clarify to all who may hay have confusion like me.
Thanks to Shabbir too......
The Difference
There are a few characters which can indicate a new line. The usual...
By Bhullarz
Last Message By shabbir
|
6 18,400 |
 |
This article assumes that readers are aware of what pointers are and how they are used in 'C'. As a quick overview, A pointer is a special variable which holds the address of a variable of same type. For example :
Lets say there is a variable 'int a=10' so,a pointer to variable 'a' can be...
By poornaMoksha
Last Message By lionaneesh
|
6 19,348 |
 |
malloc allocates certain amount of memory during program execution and free de-allocates memory previously allocated using a call to functions like malloc, calloc or realloc. Memory leak can occurs when a program allocates memory but does not release it.
Understanding malloc() & free()
...
By Trinity
|
0 1,826 |
 |
Implementation os some some elementary operations like insert, delete, search on doubly circular linked list.
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define N 100
struct dclinklist
{
By shabbir
Last Message By gemwebhost.com
|
8 31,891 |
 |
C implementation of double linked list
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define N 100
struct dlinklist
{
By shabbir
Last Message By prabakongu
|
3 47,365 |
 |
Using URLDownloadToFile function
In this article I would want to show you how to download a file from internet using URLDownloadToFile function in C language. I think everybody has ever experienced the downloading a file with Internet Explorer. IE is using directly this function, but It uses...
By Scripting
Last Message By Naresh Twanabasu
|
3 2,977 |
 |
Environment variables can be thought of as a name value pair that affect the behavior of the processes running on an operating system.
For example, to know the value of environmental variable PATH in my system, I do :
-laptop ~ $ echo $PATH
...
By poornaMoksha
|
0 1,609 |
 |
Error handling has always been dominantly vital in programming. It has become a bit more sophisticated with the object oriented languages, however even in the system programming language like C, error handling is being offered in its own simple ways.
Introduction
To swim deep into the...
By Trinity
|
0 1,516 |
 |
Introduction
This article talks about different ways of handling Abnormal Condtions or Errors that occur or Invalid Data receiving by an Application. These Errors are something, the programmer expect to occur in their Applications.
Depending on the specific circumstances, below are some...
By Mridula
Last Message By Melita
|
3 3,911 |
 |
In this article, we will discuss different implementations of sleep functions that had flaws to understand how sleep function evolved. Before discussing the sleep function implementations, lets first understand briefly the following two functions :
alarm() function
From Linux Man page :
...
By poornaMoksha
|
0 1,562 |
 |
Mostly people are using this algorithm to compute matrix multiplication:
#define n 1000
int main()
{
int a,b,c;
c=0;
for( i=0;i<n;++i)
{
By asadullah.ansari
Last Message By rahul.mca2001
|
8 25,812 |
 |
Refer to the recent articles on Understanding File Handling Functions in C & Understanding Advance File Handling Functions in C
C communicates with files using a new datatype called a file pointer. This type is defined within stdio.h, and written as FILE *. A file pointer called output_file is...
By pradeep
Last Message By etsuser
|
11 70,380 |