|
 |
bashamsc
If two process are there and one shared memory is there. One wants to write the data and another wants to read the data to the shared memory.
I have written a program in which if process1 is writing to shared memory another will wait and vise varsa. To undersand these programs one should have...
|
|
34 |
17,072 |
|
 |
shabbir
Introduction
In C you can effectively change the value of the constant variable. Just compile the following program and you will see the output.
void main()
{
int const i=123;
int *ip;
|
|
6 |
2,715 |
|
 |
mriganka
Original Non English Version here.
For simple applications, it's enough just to rely on automatic memory management through local variables. But once the data become larger, it is no longer imperative to request memory from the heap and manage.
Content
Function Families
Allocators ...
|
|
7 |
949 |
|
|
Sanskruti
Opening A File
Before we can write information to a file on a disk or read it, we must open the file. Opening a file establishes a link between the program and the operating system, about, which file we are going to access and how. We provide the operating system with the name of the file and...
|
|
9 |
85,584 |
|
|
shabbir
Most often a question comes in my mind that why OutputDebugString does not take variable no of arguments like the TRACE or printf function. I dont know the reason why but I have a solution to the problem.
This article is for those OutputDebugString fan's who are annoyed to use the CString and...
|
|
13 |
11,799 |
|
 |
shabbir
InFix to PostFix
Introduction
Infix Expression :
Notation in which the operator separates its operands. Eg (a + b) * c. Infix notation requires the use of brackets to specify the order of evaluation.
Postfix Expression :
|
|
24 |
45,997 |
|
 |
techgeek.in
Today we will discuss about Sockets programming paradigm, elements of Sockets applications, and the Sockets API. The Sockets API allows to develop applications that communicate over a network. The network can be a local private network or the public Internet. An important item about Sockets...
|
|
2 |
1,354 |
|
 |
techgeek.in
Inheritance is a feature in object-oriented programming which is very similar to the way we inherit characteristics from our parents. Characteristics in object-oriented programming terms are attributes and behaviors of a class—that is, the data and methods of a class.
Inheritance is a...
|
|
3 |
1,210 |
|
|
coderzone
The below code is a calculator in plain C. It does not take into account the operability of bodmas but just one operation at a time.
The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator.
#include<stdio.h>
...
|
|
13 |
37,409 |
|
|
shabbir
C implementation of double linked list
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define N 100
struct dlinklist
{
|
|
2 |
23,654 |
|
 |
lionaneesh
A simple code of Http-Web-Server in C done by a beginner level programmer. Please suggest if you liked it and lets make it better !! Hows that!!!
The Code
#include<stdio.h>
#include<string.h>
#include<arpa/inet.h>
#include<netdb.h>
#include<sys/types.h>
#include<sys/socket.h>
|
|
7 |
1,168 |
|
|
shabbir
I thought of sharing the code snippet. It just does the basic operations like inserting a node at the end of the linked list and deletion of any particular node in the linked list. The deletion of a node in linked list is based on the data of the node and not on the index at which data is located....
|
|
4 |
20,167 |
|
 |
Amit Ray
WHAT IS A UNION
A union, is a collection of variables of different types, just like a structure. However, with unions, you can only store information in one field at any one time.
You can picture a union as like a chunk of memory that is used to store variables of different types. Once a new...
|
|
8 |
36,323 |
|
 |
techgeek.in
Templates is a concept which enable us to define generic classes and functions and thus provides support for generic programming. Generic programming is an approach where generic types are used as parameters in algorithm so that they work for variety of suitable data types and data structures.
A...
|
|
2 |
769 |
|
 |
techgeek.in
In the previous article I explained you about the Templates in C++. C++ comes with the Standard Template Library, or STL, which includes many different types of containers, each with its own set of advantages (and disadvantages). The C++ Standard Template Library is a very large library of...
|
|
1 |
517 |
|
 |
techgeek.in
To the programmers it is very common concept that bugs are of two types i.e logical errors and syntactic errors. Poor understanding of the problem and solution procedure leads to logical errors whereas, the syntactic errors arise due to poor understanding of the language itself. We can detect these...
|
|
1 |
594 |
|
|
techgeek.in
Introduction
In computer Science and mathematics sorting is any technique that puts elements of a list in a certain numerical or lexicographical order.We will discuss some of the commonly used sorting algorithms which has been implemented in various high level languages like C, C++,...
|
|
11 |
2,275 |
|
|
shabbir
Program for singly circular linked list which inserts, deletes, searches .... data in it
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
/***** Structure template *****/
struct list{
|
|
37 |
53,029 |
|
 |
coderzone
/*question number 1*/
int z,x=5,y=-10,a=4,b=2;
z = x++ - --y * b / a;What number will z in the sample code above contain?
Choice 1
5
Choice 2
6
Choice 3
10 Corrected by buddy by running the program
Choice 4
|
05-18-2010 07:19 AM
by ishit
|
112 |
147,373 |
|
 |
techgeek.in
Introduction
A command line argument is a parameter which is passed to a program at the time or instant when it is invoked or executed from the command line .This is accomplished by passing information to main() method of the program. It is the information that directly follows the program’s...
|
|
3 |
1,719 |