Skip to main content

Featured

The STEM Revolution: From Classrooms to Code Camps

  In Nepal, the "STEM Revolution" represents a significant departure from memorization and a move toward experiential, hands-on science, technology, engineering, and math education. This approach recognizes that although traditional classrooms are fundamental, they frequently fail to provide students with the critical thinking and problem-solving abilities that the modern world requires.  It is motivated by a shared understanding that in order for Nepal's youth to prosper in the digital era, they must not only comprehend ideas but also learn how to use them creatively to address pressing issues. Making education relevant and enabling students to be creators of technology rather than merely consumers are the goals of this revolution. Dynamic, unofficial learning settings like maker spaces, robotics clubs, and programming camps are at the core of this movement. These programs, which are frequently run by neighborhood tech companies and non-profits, act as dynamic centers...

Basic Syntax of C program

 #include <stdio.h>

int main(){

printf("Hello world");

return 0;

}


The above program is one of simplest program that is written in C language. Let's understand the each line.

 #include <stdio.h>

This statements which begins with # sign are directives for the preprocessor. These statements are processed before the program is compiled. Preprocessor handles these directives. Preprocessor  directive shown above attaches the code of the header file stdio to your program. Header files are those files which contain all the information that is required to make use of the  C libraries.

int main()

From her the main function starts. The main() function is the point from where all C programs begins their execution. The content of main() function is alway executed first. The content are written inside the '{'  and '}'.

printf("Hello world");

This lines displays the message. printf() statement is used to display message. Every executable statement in C must be terminated by semicolon ;

return 0;

It means that the function doesnot return any value.




Comments

Popular Posts