 |
This is the code I wrote in my college days and dont quote me on this if something does not go as expected.
#include<stdio.h>
#include<ctype.h>
#include<conio.h>
void main()
{
int c,i,letter;
By S k
Last Message By aisha.ansari84
|
8 2,537 |
 |
A Program to check whether entered matrix is symmetric or not.
#include<stdio.h>
#include<conio.h>
main()
{
int a,at,k,i,j,m,n;
clrscr();
printf("enter the order of matrix");
scanf("%d %d",&m,&n);
By adroit89
Last Message By kiddo
|
8 18,011 |
 |
Introduction
Definition: Pointer is a variable which stores address of another variable.
To understand this definition properly, let us separate it into two statements:
1. Pointer is a variable.
2. It stores address of another variable.
Consider the first statement, it means that a...
By Sanskruti
Last Message By samraj
|
8 8,246 |
 |
Hello to one & all, I did a little bit of programming this weekend (I got myself a new Xbox 360!) .... but not satisfied with the Gaming monolith, I decided to do some game programming myself. So, I implemented that very famous game played by everyone who had access to a computer in the early 90's...
By rai_gandalf
Last Message By rai_gandalf
|
8 3,580 |
 |
Many of us know that both C and C++ do padding when allocating memory for structure.
But only few know that why the complier does it. In short, for the efficient access of the memory for OS, padding is required.
In long words, the instruction can be fetched/written one machine word at a time....
By dharmaraj.guru
Last Message By dearvivekkumar
|
8 18,169 |
 |
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 |
 |
There are times when you write a small or a big code and when you execute it you get a very small and precise output 'Segmentation fault'. In a small piece of code its still easy to debug the reason for this but as the code size grows it becomes very difficult to debug. Here in this article, I am...
By poornaMoksha
Last Message By poornaMoksha
|
8 9,993 |
 |
The code below swaps two nodes in the linked list. The swap operation can be helpful in sorting a linked list and so its very important how to swap the nodes of linked list.
Swapping in normal arrays is swap of the data but in linked list its the pointers change and so there is just change in...
By shabbir
Last Message By asadullah.ansari
|
7 35,584 |
 |
Difference between arrays and pointers?
What is the purpose of realloc( )?
What is static memory allocation and dynamic memory allocation?
How are pointer variables initialized?
Are pointers integers?
By sunina
Last Message By msubarna
|
7 31,709 |
 |
Listed here are few common complex operations of single linked list that is to be needed by certain applications. These operations should be done in single traversal for improved performance.
Here are few of them and their solutions..
1. Reverse the list.
2. Find n-th node from tail end....
By dharmaraj.guru
Last Message By vijay_visana
|
7 17,813 |
 |
Introduction
In this i have made use of recursion to calculate x to the power n
#include <stdio.h>
main()
{
By rashida.par
Last Message By asadullah.ansari
|
7 27,267 |
 |
Memory Segment
Whenever U create a program and load it on a CPU ie executing UR program. It loads a Process Page on the virtual memory of UR system.That Process page will be mapped to UR Task Struct which will be in UR Process Control Block PCB.
...
By jayaraj_ev
Last Message By shabbir
|
7 6,966 |
 |
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...
By techgeek.in
Last Message By jillandjackk
|
7 27,787 |
 |
In a language like 'C', the programmer has almost complete control over memory operations but this brings in a problem that many of you might have faced : Memory errors. Although GDB can be used in many areas of these kind of problems but there are sometimes when programmer doesn't want to put too...
By poornaMoksha
Last Message By MasterAvalons
|
7 3,511 |
 |
In this article I'm going to show you how to change value of variable during run time. There are many tools around how to do this easily, but I will focus on the way doing it programatically, specifically using C language.
Tools I will use: Cheat Engine 6.0
Here is a simple code for login, I...
By Scripting
Last Message By raju_mars
|
7 6,101 |
 |
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 |
 |
Introduction
The aim of this article is to explain the upcasting. Before going through this article I expect people have some preliminary idea about inheritance mechanism.
Background
The term upcasting comes from the class inheritance diagram. In the class inheritance diagram we...
By d_arin100
Last Message By rasd123
|
6 2,863 |
 |
Typecasting is simply a mechanism by which we can change the data type of a variable, no matter how it was originally defined. When a variable is typecasted into a different type, the compiler basically treats the variable as of the new data type.
Example
Lets go for a very simple example :
...
By poornaMoksha
Last Message By shabbir
|
6 10,394 |
 |
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 |
 |
Most of the newbie programmers are fascinated by the term 'hacking' or 'cracking'(to be precise). Generally, they see some weirdly written code (that may visually seem like a painting to any new programmer) and start dreaming of the developer who has written the code as god of programming or...
By poornaMoksha
Last Message By poornaMoksha
|
6 2,564 |