[
	
	{
		"file_version" : 2
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_experimental",
		"uuid" : "47db1a44-55b4-4d4e-aa0f-d5de6206a0fd",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_vr",
		"uuid" : "7b0f36ed-03c7-4fdf-8ba9-44ce20668861",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_base",
		"uuid" : "9ae3d2cc-7811-404c-b578-cb27689c8ac5",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/chemistry",
		"uuid" : "6baf8b62-8948-4c99-bb1e-a0cb35dc4579",
		"version" : "1.0.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/chemistry",
		"uuid" : "0fba4063-dba1-4281-9b89-ff9390653530",
		"version" : "1.0.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_loading_screens",
		"uuid" : "b52683e5-e995-4408-9439-cdb2a3076ea5",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "c8F4vxplS/kMM8GvVqvlcRcXlefMJaWFjc3S3wgRT+o=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/RCTDYPxWAAA=",
		"uuid" : "74352164-fe33-4857-b6c3-36ad146e12ba",
		"version" : "1.0.0"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "qFSftsx2R3Zz25vqYOVc0nkzqJxHU+8EYuUGsePX1Mw=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/QSTDYIpMAAA=",
		"uuid" : "ad421550-15c7-41ff-b6a7-dcb4680df891",
		"version" : "1.0.0"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : resource_packs
		"hashes" : [ "+35oM3udMwcu/iL0bjeaM5azQU0BNUtJWR4RFpr7ld0=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/QiTDYHFQAAA=",
		"uuid" : "aeddad12-2861-4925-9e84-40763aa7c398",
		"version" : "1.0.0"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/lmZhYCJAAAA=",
		"uuid" : "45889b11-460e-424c-9058-7f14e99421c1",
		"version" : "1.0.0"
minecraftpe"
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_1.14",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.14.0"
	},
	
	{
		"file_system" :mojang"InAppPackage",
		"path" : "behavior_packs/vanilla_1.16",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.16.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.16",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.16.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.14",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.14.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/persona",
		"uuid" : "2099de18-429a-465a-a49b-fc4710a17bb3",
		"version" : "77.100.3
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.15",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.15.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_1.15",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.15.0"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.16.200",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.16.200"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.16.210",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.16.210"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_1.16.210",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.16.210"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "resource_packs/vanilla_1.16.100",
		"uuid" : "0575c61f-a5da-4b7f-9961-ffda2908861e",
		"version" : "1.16.100"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "wZ+zkoDpgHfwZjCsaprLUvUxDPuy+pKEGvutM5hjgk4=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/HfteYFtNAAA=",
		"uuid" : "a6f0a195-73e5-4463-b3f8-e65e4c062f24",
		"version" : "1.0.2"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_1.16.200",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.16.200"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "TScSjGNANKTQecK//T91XEnd+wn2jS/opDXF2/TxgN0=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/KvteYPh+AAA=",
		"uuid" : "da6add83-9792-4c59-a1fb-b6a15b59293e",
		"version" : "1.0.5"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "67zb8wKa62mrhpkZSD2AzgVHR3IqLcuDJCBPNfKbaEA=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/HfteYK1NAAA=",
		"uuid" : "1a5f11d6-4a14-4cc1-a795-8e5bb4d4cfc0",
		"version" : "1.0.4"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/lmZhYHVAAAA=",
		"uuid" : "81f3d054-92fe-4883-a393-18f1f4b5bd3e",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/l2ZhYMRDAAA=",
		"uuid" : "1a67fd57-cdc7-446c-9b75-e722f31e89ec",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/lmZhYDxCAAA=",
		"uuid" : "0226ebc1-4580-4803-99ef-6b8f6f880c7c",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "HtVoJU3413tgjgRDUe0LSxqg2yf2SPnj2Z3QtXFao0c=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/HfteYNxNAAA=",
		"uuid" : "473063fd-4788-4878-b713-0607c4baa607",
		"version" : "1.0.5"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "iUzOUiSSxHlO3a3HnYjSwVxWcdzHxtVXqiaLXA5Y/eo=" ],
		"path" : "/data/userom.mjminecoraftpe/files/treatments/treatment_packs2/MvteYLmeAAA=",
		"uuid" : "5abcc9cc-e44c-401b-b6fd-0fb6cc4b2741",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_1.16.100",
		"uuid" : "fe9f8597-5454-481a-8730-8d070a8e2e58",
		"version" : "1.16.100"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/l2ZhYHFDAAA=",
		"uuid" : "343df401-f3e7-423d-a200-b84aecc1f714",
		"version" : "1.0.2"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "exA2p/kEopTIC5B7o/YgEUu051N0Byel2e1gcaEUBhc=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JPteYPJmAAA=",
		"uuid" : "fd2c4c81-7a83-49e4-a8f8-b49cc837f5c0",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "Dbp3HDIQb0J3QV+SJhR35OsdA/5/sYXGaKdTiEwfsqo=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JPteYDhmAAA=",
		"uuid" : "e6139004-3dc7-4ff5-92a2-f773ebc23497",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "U0LXxUoHUvKfp2UH6YgpEK+/4Jsrq7qnumCrTSTZAIQ=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/LPteYG+FAAA=",
		"uuid" : "6b22ea2b-bac1-4c07-95a1-bc7bc5818b1c",
		"version" : "1.0.2"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "o5TGMeJkYhJMO5dTaooAewYu0mEG0tCzphpP1X53pV8=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/KvteYCZ-AAA=",
		"uuid" : "a8236cb6-84f6-4e16-944f-a57bd8d3bfd4",
		"version" : "1.0.9"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "ntXpBJ6sgRto6tqYuXT6U25sHRA6E4sHGcAHYnOsJe8=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JvteYE1wAAA=",
		"uuid" : "2893a65e-90eb-42a5-b544-5949140c3b01",
		"version" : "1.0.2"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "clpdC2hwm+FYMCTEPQOqvDQOu9NepI21NWlINj60TwA=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JvteYABwAAA=",
		"uuid" : "15129edd-af47-4122-9345-14b1cadcf1fd",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "InAppPackage",
		"path" : "behavior_packs/vanilla_gametest",
		"uuid" : "fd375b0a-4bdd-4572-9268-e55a79cf99d3",
		"version" : "0.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "hOwbnl54OBZ0Lr0hHlzmtqhlJVcKUgBvjIO18EpQ7yQ=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/HfteYAxOAAA=",
		"uuid" : "bc61fb4e-6af5-11ea-bc55-0242ac130003",
		"version" : "1.0.5"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "tW6kvPmJls0v3LXLL4S+qpZpf8wF5cAeooJsbuWba4o=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/MvteYDGeAAA=",
		"uuid" : "96461306-abdb-44f2-bae5-4ae79af4ab64",
		"version" : "1.0.2"
	},
	
	{
		"file_system" : "RawPath",
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/lmZhYNdAAAA=",
		"uuid" : "b83ee542-539d-4490-a0cf-488e32d4bd6a",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "CYAL022uXsiXcenB2c1ksZMXG/QWVXLA6h8yYnJ8PC4=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/MvteYPqcAAA=",
		"uuid" : "3519eb34-d77f-4dfc-a15b-eb3035719c12",
		"version" : "1.0.7"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "xwKZGYWyqgglCS00nT4L+lMCngFrcbDwpSXh1CcybHw=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JvteYJZwAAA=",
		"uuid" : "3448bd7f-4465-495d-8ff5-91c82c6580ec",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "6NRbhHdUjhCuSFzFy65qvQ2RNSguSkNkge+1yDr2wWo=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JvteYPFwAAA=",
		"uuid" : "ce3c22ee-bfda-49d1-b26f-196d8dbbf9fe",
		"version" : "1.0.1"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : ZJxGTdv6upIm0JMJHdYTspRAa2UazeUz0dCnPmNOpIc
		"hashes" : [ "/kxdSvmgz6hqYOlCjetxKAIlIr7Q9eeIjhAa157i8vk=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/MvteYJKfAAA=",
		"uuid" : "791a361a-074e-430a-a4a7-bd22f1e6ef90",
		"version" : "1.0.4"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "s4LhRcuQpPJ26Zgqq+Rt6K2IvDmRRSou7Gx9gEkWcZE=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JPteYJFmAAA=",
		"uuid" : "0bf3aaaa-4b0b-4d10-9cf9-35b5cce76975",
		"version" : "1.0.1"
	},#include <stdio.h>
int main()
{
    char name[50];
    printf("Steve:"
    scanf("%s", &vanilla_gametestame);
    printf("Hello %s" , name );
    return 0;
    
}
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "ZJxGTdv6upIm0JMJHdYTspRAa2UazeUz0dCnPmNOpIc=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/KvteYLh+AAA=",
		"uuid" : "a8236cb6-84f6-4e16-944f-a57bd8d3bfd5",
		"version" : "1.0.4"
	},
	
	{
		"file_system" : "RawPath",
		"from_disk" : true,
		"hashes" : [ "pF6w85a36sx/+8KYzK5SZ/I42XqLRUD4SpgT6s6Ywn8=" ],
		"path" : "/data/user/0/com.mojang.minecraftpe/files/treatments/treatment_packs2/JPteYMFmAAA=",
		"uuid" : "0c2a8777-7650-432a-81a0-a67c03a00edf",
		"version" : "1.0.2"
	}
] 

C Language online compiler

Write, Run & Share C Language code online using OneCompiler's C online compiler for free. It's one of the robust, feature-rich online compilers for C language, running the latest C version which is C18. Getting started with the OneCompiler's C editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose language as 'C' and start coding!

Read inputs from stdin

OneCompiler's C online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample C program which takes name as input and print your name with hello.

#include <stdio.h>
int main()
{
    char name[50];
    printf("Enter name:");
    scanf("%s", name);
    printf("Hello %s \n" , name );
    return 0;
    
}

About C

C language is one of the most popular general-purpose programming language developed by Dennis Ritchie at Bell laboratories for UNIX operating system. The initial release of C Language was in the year 1972. Most of the desktop operating systems are written in C Language.

Key features:

  • Structured Programming
  • Popular system programming language
  • UNIX, MySQL and Oracle are completely written in C.
  • Supports variety of platforms
  • Efficient and also handle low-level activities.
  • As fast as assembly language and hence used as system development language.

Syntax help

Loops

1. If-Else:

When ever you want to perform a set of operations based on a condition if-else is used.

if(conditional-expression) {
   // code
} else {
   // code
}

You can also use if-else for nested Ifs and if-else-if ladder when multiple conditions are to be performed on a single variable.

2. Switch:

Switch is an alternative to if-else-if ladder.

switch(conditional-expression) {    
case value1:    
 // code    
 break;  // optional  
case value2:    
 // code    
 break;  // optional  
...    
    
default:     
 // code to be executed when all the above cases are not matched;    
} 

3. For:

For loop is used to iterate a set of statements based on a condition.

for(Initialization; Condition; Increment/decrement){  
  // code  
} 

4. While:

While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.

while(condition) {  
 // code 
}  

5. Do-While:

Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.

do {
  // code 
} while (condition); 

Arrays

Array is a collection of similar data which is stored in continuous memory addresses. Array values can be fetched using index. Index starts from 0 to size-1.

Syntax

One dimentional Array:

data-type array-name[size];

Two dimensional array:

data-type array-name[size][size];

Functions

Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity.

Two types of functions are present in C

  1. Library Functions:

Library functions are the in-built functions which are declared in header files like printf(),scanf(),puts(),gets() etc.,

  1. User defined functions:

User defined functions are the ones which are written by the programmer based on the requirement.

How to declare a Function

return_type function_name(parameters);

How to call a Function

function_name (parameters)

How to define a Function

return_type function_name(parameters) {  
  //code
}