This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#define MAX 3 | |
typedef struct stack //globally declared structure | |
{ | |
int array[MAX]; | |
int top; | |
}stack; | |
stack s; //s is a global variable of datatype stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Main | |
{ | |
public static void main() | |
{ | |
System.out.println(“Hello, World!”); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
printf(“Hello, World!”); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(“Hello, World!”) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println "Hello, World"; //semicolons are optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//take two variables x and y | |
//x is an integer and y is a float | |
x=50 | |
y=29.3 | |
//declare an array name, arr, with 3 elements | |
//first is a string, second is a function, third is a float | |
//because third is the sum of x and y, must be float | |
arr=<"I'm Mayukh", nimo[]{println "Hello"}, x+y>; | |
//running a loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Author:- Mayukh Datta | |
**/ | |
#include<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#define H 7 | |
#define W 8 //one extra room in the char array is required for storing '\0' | |
void main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Language:- C | |
#include<stdio.h> | |
#include<stdlib.h> | |
#define MAX 3 | |
typedef struct stack //globally declared structure | |
{ | |
int array[MAX]; | |
int top; | |
}stack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Language:- C | |
#include<stdio.h> | |
#include<stdlib.h> | |
typedef struct node | |
{ | |
int data; | |
struct node *next; | |
}node; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Language:- C | |
#include<stdio.h> | |
#include<stdlib.h> | |
typedef struct node //globally declared structure | |
{ | |
int data; | |
struct node *next; //self-referencing pointer, to know more refer C programming book by D. Ritchie | |
}node; |
OlderNewer