Introduction to Programming

This blog assists in mastering C and C++ programming skills from basics to advanced levels.

Pages

  • My First C Program
  • Basic Concepts
  • Looping
  • Branching
  • Patterns
  • Arrays
  • Functions
  • File Management
  • Strings
  • Special C Programs
  • Flowchart
  • Algorithm
  • Structure
  • Pointer
  • RAPTOR
  • Interview Questions
  • Quizzes
  • Question Bank
  • Games
  • Security
  • Networking
  • C++ Programming
  • ઈન્ટરનેટનું સામાન્ય જ્ઞાન
  • Projects
  • Contact us

Tuesday, February 16, 2016

Use of GOTO statement in C program.

#include<stdio.h>
int main()
{
    int num1=10, num2=20, num3=30;
    printf("%d \n", num1);
    goto ABC;
    printf("%d \n", num2);
    ABC:
    printf("%d \n", num3);
return 0;
}
Output of program:
10
30




You may also like to learn following programs:

  • Use of XOR operations on two numbers using C program.
  • C program to ring a bell.
  • Use of Time (Sleep) function in C program.
  • C program to separate words (tokens) from a given string.
  • C program to count spaces in a given string.
  • C program to print ASCII values and its corresponding character.
  • C program to print memory addresses of an array elements.
  • Changing(swapping) value of two variables without use of third variable.
  • Use of MODULUS (%) operator to find odd or even number.
  • C program to validate user input.
  • C program to print memory occupied by int, float and char variables.
  • Storing New Line character (\n) as a user input data.
  • C program to use Arrow keys.
  • C program to delete a given file.
  • Printing Box using ASCII values. 
Posted by KKP at 1:46 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Special

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Total Pageviews

Followers

Labels

  • Algorithm (5)
  • Arrays (20)
  • Basics (51)
  • Branching (16)
  • C Plus Plus (31)
  • Data Structure (2)
  • Dymanic Memory Management (3)
  • File Handling (20)
  • Flowchart (26)
  • Functions (15)
  • Loops (59)
  • Networking (15)
  • Operators (13)
  • Patterns (18)
  • Pointers (8)
  • Projects (6)
  • Security (22)
  • Series (7)
  • Special (61)
  • String (23)
  • Structure (8)

Blog Archive

  • ►  2025 (2)
    • ►  April (1)
    • ►  January (1)
  • ►  2024 (3)
    • ►  February (2)
    • ►  January (1)
  • ►  2023 (11)
    • ►  December (2)
    • ►  October (1)
    • ►  September (1)
    • ►  June (1)
    • ►  April (2)
    • ►  March (1)
    • ►  February (3)
  • ►  2022 (5)
    • ►  December (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2021 (6)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2020 (16)
    • ►  December (2)
    • ►  September (1)
    • ►  August (2)
    • ►  June (1)
    • ►  April (2)
    • ►  March (2)
    • ►  February (4)
    • ►  January (2)
  • ►  2019 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  April (1)
    • ►  March (4)
    • ►  February (2)
    • ►  January (1)
  • ►  2018 (51)
    • ►  December (4)
    • ►  November (7)
    • ►  October (14)
    • ►  September (3)
    • ►  August (6)
    • ►  July (2)
    • ►  June (1)
    • ►  April (4)
    • ►  March (7)
    • ►  February (2)
    • ►  January (1)
  • ►  2017 (121)
    • ►  December (7)
    • ►  November (4)
    • ►  October (6)
    • ►  September (2)
    • ►  August (7)
    • ►  July (17)
    • ►  June (6)
    • ►  May (20)
    • ►  April (15)
    • ►  March (13)
    • ►  February (18)
    • ►  January (6)
  • ▼  2016 (201)
    • ►  December (15)
    • ►  November (19)
    • ►  October (12)
    • ►  September (28)
    • ►  August (18)
    • ►  July (11)
    • ►  June (34)
    • ►  April (3)
    • ►  March (13)
    • ▼  February (43)
      • Simple Hash function implementation on 8 bits usin...
      • Program for password decryption using Caesar ciphe...
      • Program to encrypt password using Caesar cipher.
      • C program to validate user input.
      • Use of GOTO statement in C program.
      • C program to write a word in text file.
      • C Program to find largest number from given three ...
      • C Program to find bigger number.
      • Example of nested if statement. Check: A is greate...
      • C Program to convert given number (between 1 to 5)...
      • Check: Given number is positive or not using if..e...
      • Check: Given number is positive or not using if st...
      • Use of MODULUS (%) operator to find odd or even nu...
      • C program to print 10 to 1 numbers using for loop.
      • C program to print series 1 3 5 7... 19 using do.....
      • C program to print 10 to 20 numbers using while loop.
      • C program to print Z to A using do..while loop.
      • C program to print A to Z using while loop.
      • C program to print 1 to 10 numbers using for loop.
      • Changing(swapping) value of two variables without ...
      • Simple Calculator using C
      • printf function with formatting.
      • Finding square(x*x) and cube(x*x*x) of a given num...
      • C program to print ASCII value of a given character.
      • Using character variable in C program.
      • Reading two float numbers, assign sum to integer v...
      • C program to read two numbers from user and displa...
      • C program to read and display roll number and perc...
      • My First C Program
      • C program to read roll number and marks from user ...
      • C program to print memory addresses of an array el...
      • Matrix Addition using C program
      • C program to find sum of diagonal elements of a ma...
      • C program to print ASCII values and its correspond...
      • Use of XOR operations on two numbers using C program.
      • C program to read values in 2-D Array.
      • C program to check Identity Matrix.
      • C program to print initial of given name
      • C program to read and display 3X3 integer Matrix u...
      • C program to read and display 5 integer values in ...
      • C program to count A in a given string.
      • C program to count spaces in a given string.
      • Interesting C String Processing Program
    • ►  January (5)
  • ►  2015 (5)
    • ►  October (4)
    • ►  September (1)

Translate

Wikipedia

Search results

Popular Posts

  • Draw Flowchart to check Odd or Even Number.
    Odd Even Flowchart Following flowchart will read a number from user. This number is checked using % operator to find whether it is odd o...
  • Flowchart to Add two numbers.
    Flowchart to Add two numbers  This flowchart outlines the essential steps required to add two numbers. Fig. Flowchart to Add two numb...
  • MCQs based on Flowchart with Answer
    The _______ provides pictorial representation of given problem. A. Algorithm B. Flowchart C. Pseu...
  • Flowchart of Area of Circle
    This flowchart is prepared using one of the workflow diagram software RAPTOR. Read C program to print Area of Circle More Sam...
  • Flowchart of Simple Interest
    Simple Interest Calculation of Savings Bank Accounts / Loan Accounts Following flowchart describes the process of simple interest calcu...

Contact us for any Doubt

Name

Email *

Message *

Visitors Information

Flag Counter
Data and information provided on blog is for information only.. Powered by Blogger.