PhoeniX888
|
codepad
|
|
PhoeniX888
|
Saved pastes by PhoeniX888:
/* 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) |
/*
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) |
//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) |
//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) |
//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) |
#include "stdio.h"
#include "string.h"
void add_big(char* bg1,char* bg2)
{int lb1 = strlen(bg1);
|
view (61 lines, 1 line of output) |