kamarakay2000
|
codepad
|
|
kamarakay2000
|
Saved pastes by kamarakay2000:
#include <stdio.h>
#include <string.h>
char *longer(char *s1, char *s2)
{
char *result = malloc(strlen(s1) + strlen(s2) + 1);
|
view (21 lines, 1 line of output) |
#include <stdio.h>
#include <string.h>
int main()
{
char source_string[] = "I am a stranger in a strange land";
|
view (12 lines, 1 line of output) |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define ROWS 30
#define COLUMNS 10
|
view (17 lines, 30 lines of output) |
#include <stdio.h>
void repeat(int count);
int main()
{
puts("At first the raven was like: ");
|
view (22 lines, 11 lines of output) |
#include <stdio.h>
void repeat(int count);
int main()
{
puts("At first the raven was like: ");
|
view (18 lines, 11 lines of output) |
#include <stdio.h>
void blorf(void);
int main()
{
puts("The main function always runs first");
|
view (14 lines, 3 lines of output) |
#include <stdio.h>
void blorf(void);
int main()
{
puts("The main function always runs first");
|
view (15 lines, 4 lines of output) |
def main():
import turtle
for steps in range (4):
turtle.forward (100)
turtle.forward (90)
|
view (5 lines) |
#include<stdio.h>
int main(void){
int height = 5;
while(height<8);
printf("The statement evaluated to true!");
|
view (7 lines, 1 line of output) |
#include<stdio.h>
int main(void){
int height = 5;
int width = 25;
if(height == 5||width == printf("123"));
|
view (8 lines, 1 line of output) |
#include<stdio.h>
int main(void){
int good_teacher = 0;
good_teacher = 10+ printf("you are a great teacher\n");
printf("displaying number is:%d",good_teacher);
|
view (7 lines, 2 lines of output) |
#include<stdio.h>
int main(void){
char my_character ="a";
printf("The value is:%d",my_character);
return 0;
|
view (6 lines, 1 line of output) |
#include<stdio.h>
int main(void){
unsigned int a = 5;
printf("The value is :%u",a);
return 0;
|
view (6 lines, 1 line of output) |
#include<stdio.h>
int main(void){int i = 5;
printf("The value is:%i,%i and %d",i,i,i);
return 0;
}
|
view (5 lines, 1 line of output) |
#include <stdio.h>
int main(void){char *my_pointer;
my_pointer = "Hello friends";
printf("The string is:%s",my_pointer);
return 0;
|
view (6 lines, 1 line of output) |