Your SlideShare is downloading. ×
Computer programming theory_1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Computer programming theory_1

689
views

Published on

Published in: Education, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
689
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Khalid Rasheed Shaikh Computer Programming Theory 1
  • 2. Programming Environment
      • Command Line 
      • IDE (Integrated Development System)
  • 3. Library and Run-Time Files
      • library Files
      • Math Library
      • Run-Time Object Files
      • Header Files
      • Programmer Generated Files
  • 4. Writing a program
    •  
      • void main(void){
    •         printf("I can speak German");
    •      }
      •     Saving Programe
      • Making an .EXE
      • Compiling
      • Linking
      • Executing a Program
  • 5. Errors
      • Syntax Errors
      • Logical Errors
  • 6. Basic Structure of C programs
      • Function Definition
      • Delimiters
      • Statement Terminator
      • Program Style, Round One
        • void main(void){ printf("Hello");}
  • 7. The printf Function
    •  
    • printf("My First C Program");
  • 8. Exploring the printf function
      • Printing Numbers
        • printf("Number: %d", 2) ;
      • Format Specifiers
      • Printing String
        • printf("$s is an %s" 2, "int")
      • Printing Characters
  • 9. Variables
      • Constant and Variables
        • Defining
        • Declaring
        • Assigning
  • 10. Variables Type
      • int
      •   char
      • float
      • double
  • 11. Input / Output
    • float flt = 2.3;
    • printf("%.1f", flt);
  • 12. The scanf() Function
    • float years, days;
    • printf("Enter age in Years");
    • scanf("%f",&years);
    • days = years*365;
    • printf("Your age is %.1f", days)
  • 13. The Address Operator (&)
    • scanf("%f",&years);
    • printf("Address = %d, value = %f ", years, &years);
  • 14. Operators
      • Arithmetic Operators
      • Operator Precedence
        • (B)rackets, (O)rder, (D)ivision, (M)ultiplication, (A)ddition, (S)ubtraction
      • The Reminder Operator
        • answer = 13 % 5;
      •   Expression Vs Variables
        • days = years * 365
      • Arithmetic Assignment Operators
      • Increment operators
      • Relational operators