[ create a new paste ] login | about

PhoeniX888

Name: Abhishek Sharma
Email:
Site/Blog:
Location: Earth
Default language:
Favorite languages: c++
About: Amateur

Saved pastes by PhoeniX888:

C, pasted on Mar 12:
1
2
3
4
5
/* Would run forever if you didn't limit it to MAX */
#include <stdio.h>
struct circ_list
{
        char    value[ 3 ];     /* e.g., "st" (incl '\0') */
...
view (32 lines, 51 lines of output)
C++, pasted on Sep 10:
1
2
3
4
5
/*
Little Johnny is a very good programmer, just like you.His teacher has however asked him a simple task
concerning Memory Management.You being his best friend, are supposed to help him with his task.
Given a string of letters, you have to count the frequency of occurence of each character in the string.
To make it more rigid on memory, the teacher has asked you to follow few guidelines:
...
view (98 lines, 4 lines of output)
C, pasted on Sep 10:
1
2
3
4
5
//Write a program that does a 3-way swap. 
//The function threeWaySwap(a,b,c), will put the value of a in b, b in c, and c in a.
//Without using extra variable

#include <stdio.h>
...
view (27 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
 #include<stdio.h>
#include<string.h>

int main()
{
...
view (17 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
//Pointers # 9

#include<stdio.h>

int main()
...
view (15 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
 	

//What will be the output of the program assuming that the array begins at location 1002?

#include<stdio.h>
...
view (15 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
//Pointers #8

#include<stdio.h>

int main()
...
view (11 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
//pointers #4:: Not works in C++ but works in C .. 

#include<stdio.h>

int main()
...
view (15 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
//Pointers : 7

#include<stdio.h>

int main()
...
view (9 lines, 1 line of output)
C, pasted on Sep 8:
1
2
3
4
5
//pointers #4:: Not works in C++ but works in C .. 

#include<stdio.h>

int main()
...
view (15 lines, 1 line of output)
C, pasted on Sep 3:
1
2
3
4
5
//Pointer #5

#include<stdio.h>

int main()
...
view (17 lines, 1 line of output)
C, pasted on Sep 3:
1
2
3
4
5
//Pointer #4

#include<stdio.h>

void fun(void *p);
...
view (20 lines, 1 line of output)
C, pasted on Sep 3:
1
2
3
4
5
//Pointers #3

#include<stdio.h>

int main()
...
view (13 lines, 1 line of output)
C, pasted on Sep 3:
1
2
3
4
5
//Pointers #2

#include<stdio.h>

int main()
...
view (16 lines, 1 line of output)
C, pasted on Sep 3:
1
2
3
4
5
//Pointers #1

#include<stdio.h>

int main()
...
view (13 lines, 1 line of output)
C, pasted on Aug 13:
1
2
3
4
5
//Implementing Hash Table

#include "stdio.h"
void fa()
{ 
...
view (24 lines, 1 line of output)
C, pasted on Jul 25:
1
2
3
4
//Program to add 1 in very big number

#include "stdio.h"
#include "string.h"
...
view (26 lines, 1 line of output)
C, pasted on Jul 25:
1
2
3
4
5
//Reverse order of words

#include "string.h"
void string_manip(char * str)
{
...
view (30 lines, 4 lines of output)
C, pasted on Jul 25:
1
2
3
4
5
//Place first character of each word at last and add "ay"

#include "string.h"

void string_manip(char *str)
...
view (36 lines, 1 line of output)
C, pasted on Jul 25:
1
2
3
4
5
//Reverse Each Word at its place

#include "string.h"
void string_manip(char *str)
{
...
view (30 lines, 1 line of output)
C, pasted on Jul 21:
1
2
3
4
5
void coin(int num)
{
	int val[6] = {0};
	int i1,i2,i3,i4,i5,i6;
	int range = num / 16;
...
view (29 lines, 72 lines of output)
C++, pasted on Jul 21:
1
2
3
4
5
#include "stdio.h"
#include "string.h"

void add_big(char* bg1,char* bg2)
{int lb1 = strlen(bg1);
...
view (61 lines, 1 line of output)
C++, pasted on Jul 21:
1
2
3
4
5
#include "stdio.h"
#include "string.h"

void add_big(char* bg1,char* bg2)
{int lb1 = strlen(bg1);
...
view (61 lines, 1 line of output)