Hello, I’m Veronica

The sky is not completely dark at night. Were the sky absolutely dark, one would not be able to see the silhouette of an object against the sky.

  • C Programming Language

    Introduction

    C is a procedural programming language initially developed by Dennis Ritchie in the year 1972 at Bell Laboratories of AT&T Labs. It was mainly developed as a system programming language to write the UNIX operating system.

    The main features of the C language include:

    • General Purpose and Portable
    • Low-level Memory Access
    • Fast Speed
    • Clean Syntax

    These features make the C language suitable for system programming like an operating system or compiler development.

    1. Why Should We Learn C?

    Many later languages have borrowed syntax/features directly or indirectly from the C language. Like syntax of Java, PHP, JavaScript, and many other languages are mainly based on the C language. C++ is nearly a superset of C language (Only a few programs may compile in C, but not in C++).null

    2. Beginning with C programming:
    Writing the First Program in C

    The following code is one of the simplest C programs that will help us the basic syntax structure of a C program.

    Example:

    C first program

    # include<stdio.h>

    int main ()

    {

    int a= 10;

    printf (“%d \n”, a);

    }

    Output

    10

    Let us analyze the structure of our program line by line.

    3. Structure of the C program

    After the above discussion, we can formally assess the structure of a C program. By structure, it is meant that any program can be written in this structure only. Writing a C program in any other structure will hence lead to a Compilation Error. The structure of a C program is as follows:

    structure of c program
    4. Components of a C Program:

     

    1. Header Files Inclusion – Line 1 [#include <stdio.h>]

    The first and foremost component is the inclusion of the Header files in a C program. A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files. All lines that start with are processed by a preprocessor which is a program invoked by the compiler. In the above example, the preprocessor copies the preprocessed code of stdio.h to our file. The .h files are called header files in C.
    Some of the C Header files:

    • stddef.h – Defines several useful types and macros.
    • stdint.h – Defines exact width integer types.
    • stdio.h – Defines core input and output functions
    • stdlib.h – Defines numeric conversion functions, pseudo-random network generator, and memory allocation
    • string.h – Defines string handling functions
    • math.h – Defines common mathematical functions.
    2. Main Method Declaration – Line 2 [int main()]

    The next part of a C program is to declare the main() function. It is the entry point of a C program and the execution typically begins with the first line of the main(). The empty brackets indicate that the main doesn’t take any parameter (See this for more details). The int that was written before the main indicates the return type of main(). The value returned by the main indicates the status of program termination. See this post for more details on the return type.

    3. Body of Main Method – Line 3 to Line 6 [enclosed in {}]

    The body of a function in the C program refers to statements that are a part of that function. It can be anything like manipulations, searching, sorting, printing, etc. A pair of curly brackets define the body of a function. All functions must start and end with curly brackets.

    4. Statement – Line 4 [printf(“Hello World”);]

    Statements are the instructions given to the compiler. In C, a statement is always terminated by a semicolon (;). In this particular case, we use printf() function to instruct the compiler to display “Hello World” text on the screen.

    5. Return Statement – Line 5 [return 0;]

    The last part of any C function is the return statement. The return statement refers to the return values from a function. This return statement and return value depend upon the return type of the function. The return statement in our program returns the value from main(). The returned value may be used by an operating system to know the termination status of your program. The value 0 typically means successful termination. 

    5. How to Execute the Above Program?

    In order to execute the above program, we need to first compile it using a compiler and then we can run the generated executable. There are online IDEs available for free like GeeksforGeeksIDE, that can be used to start development in C without installing a compiler.

    1. Windows: There are many free IDEs available for developing programs in C like Code Blocks and Dev-CPP. IDEs provide us with an environment to develop code, compile it and finally execute it. We strongly recommend Code Blocks.
    2. Linux: GCC compiler comes bundled with Linux which compiles C programs and generates executables for us to run. Code Blocks can also be used with Linux. 
    3. macOS: macOS already has a built-in text editor where you can just simply write the code and save it with a “.c” extension.

    Please write comments if you find anything incorrect, or if you want to share more information about the topic discussed above.


  • Looking back on a year of working remotely

    It is only in comparatively recent years that attention has been given to bee-keeping on a scientific basis. Aforetime there were certain traditional methods to be followed to secure the honey harvest, but those who practised them knew neither the why nor wherefore. Today, however, thanks to the observations of our great scientists on the life and habits of the bee, to their patience and diligence in noting the insect’s manner of working, we are in possession of knowledge which has enabled the practical bee-keeper to reduce the old haphazard ways to method, orderliness, and definite purpose.

    The budding bee-keeper, as he reads one or other of these great works on the bee and its ways, may begin to wonder if it is not all too wonderful for him to deal with, and if he may ever hope to become proficient in the art and practice of bee-keeping. Let me say, here and now, that, given patience, perseverance, and diligence, a measure of success is open to anyone who brings intelligence into his work.

    I’m spending more time with
    my family, exercising more,
    and getting more sleep.

    Although the doubts and difficulties that assail the tyro, and the questions arising therefrom, might raise a smile from the expert—if only as a reminder of his own early aspirations and efforts—yet there is no reason for despair; though disappointments are certain to arise, they should be accepted merely as spurs to further effort, as steps towards the ultimate goal of success.

    Some may think—rashly—that there is nothing new to be said or learned about the bee, but the fact is that even scientists are still ignorant as to the definite uses of certain of the insect’s organs, and of the origin and remedies of some of the diseases from which it suffers. Putting aside, therefore, the merely commercial aspect of bee-keeping, there is still a wide field of interest and research open for exploration by the intelligent bee-keeper.


  • I check email just two times a day and it’s fine

    It is only in comparatively recent years that attention has been given to bee-keeping on a scientific basis. Aforetime there were certain traditional methods to be followed to secure the honey harvest, but those who practised them knew neither the why nor wherefore. Today, however, thanks to the observations of our great scientists on the life and habits of the bee, to their patience and diligence in noting the insect’s manner of working, we are in possession of knowledge which has enabled the practical bee-keeper to reduce the old haphazard ways to method, orderliness, and definite purpose.

    The budding bee-keeper, as he reads one or other of these great works on the bee and its ways, may begin to wonder if it is not all too wonderful for him to deal with, and if he may ever hope to become proficient in the art and practice of bee-keeping. Let me say, here and now, that, given patience, perseverance, and diligence, a measure of success is open to anyone who brings intelligence into his work.

    Although the doubts and difficulties that assail the tyro, and the questions arising therefrom, might raise a smile from the expert—if only as a reminder of his own early aspirations and efforts—yet there is no reason for despair; though disappointments are certain to arise, they should be accepted merely as spurs to further effort, as steps towards the ultimate goal of success.

    Some may think—rashly—that there is nothing new to be said or learned about the bee, but the fact is that even scientists are still ignorant as to the definite uses of certain of the insect’s organs, and of the origin and remedies of some of the diseases from which it suffers. Putting aside, therefore, the merely commercial aspect of bee-keeping, there is still a wide field of interest and research open for exploration by the intelligent bee-keeper.


  • This is what a typical day looks like for me

    It is only in comparatively recent years that attention has been given to bee-keeping on a scientific basis. Aforetime there were certain traditional methods to be followed to secure the honey harvest, but those who practised them knew neither the why nor wherefore. Today, however, thanks to the observations of our great scientists on the life and habits of the bee, to their patience and diligence in noting the insect’s manner of working, we are in possession of knowledge which has enabled the practical bee-keeper to reduce the old haphazard ways to method, orderliness, and definite purpose.

    The budding bee-keeper, as he reads one or other of these great works on the bee and its ways, may begin to wonder if it is not all too wonderful for him to deal with, and if he may ever hope to become proficient in the art and practice of bee-keeping. Let me say, here and now, that, given patience, perseverance, and diligence, a measure of success is open to anyone who brings intelligence into his work.

    Although the doubts and difficulties that assail the tyro, and the questions arising therefrom, might raise a smile from the expert—if only as a reminder of his own early aspirations and efforts—yet there is no reason for despair; though disappointments are certain to arise, they should be accepted merely as spurs to further effort, as steps towards the ultimate goal of success.

    Some may think—rashly—that there is nothing new to be said or learned about the bee, but the fact is that even scientists are still ignorant as to the definite uses of certain of the insect’s organs, and of the origin and remedies of some of the diseases from which it suffers. Putting aside, therefore, the merely commercial aspect of bee-keeping, there is still a wide field of interest and research open for exploration by the intelligent bee-keeper.


About Me

The sky is not completely dark at night. Were the sky absolutely dark, one would not be able to see the silhouette of an object against the sky.

Follow Me On

Subscribe To My Newsletter

Subscribe for new travel stories and exclusive content.

Design a site like this with WordPress.com
Get started