This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Friday, 2 January 2015

Program Command Line Argument

Assalamualaikum wr.wb
Kali ini arief ingin berbagi contoh dari program C. Dalam program C ada yang namanya Command Line Argument, yaitu dimana inputan dari program dilakukan saat program dieksekusi (dijalankan).

untuk codenya seperti di bawah ini :

#include <stdio.h>

int main(int argc, char* argv[]){

   int i;
   for(i=0;i<argc;i++){
      printf("%s\n",argv[i]);
   }

return 0;
}

code di atas merupukan code untuk menampilkan semua imputan saat program kita jalankan.

ini screen shoot untuk programnya


 untuk mengcompilenya juga sama cara yaitu: gcc -Wall -o (nama program) (nama file.c)

sekian untuk toturial kali ini ya sobat bloger. Semoga bermanfaat.

Happy Coding :)

Tidak ada yang tidak mungkin jika kita mau untuk terus berusaha belajar...!!!

Wassalam...