Author Archive

Simple Example OF Subroutines In C Programming

Posted on: Wednesday, November 5th, 2008 | Written by Wakish

kaleidoscope + subroutines In C Programming

CODE:

//include the required libraries here
void main()
{
int input01, input02, result;

//give some inputs, but you can make it this C program interactive
input01 = 25;
input02 = 10;

result = multiply(input01,input02);    //subroutine call

printf(”Multiplication of %d and %d is %d”,input01,input02,result);
}

/* subroutine definition block */
int multiply(int x, int y)
{
return x*y;
}

OUTPUT:

Multiplication of 25 and 10 is 250

When execution starts and encounters the statement ‘result = multiply(input01,input02);‘, execution goes to the function or subroutine call. We can visualise it as follows:

VISUALISATION:

int multiply(25, 10)
{
return 25*10;   //computes and returns 250
}

Therefore, multiply() returns its result which is stored into the variable ‘result‘. After the value is returned, execution goes back to main and proceeds to the next statement.

star Other Simple C Programming Tutorials:
=> Random Numbers in C programming
=> It’s Too Easy To Make This Simple, But Worse, Logical Error In Programming
=> Format Specifiers Used In C Programming
=> A simple Interactive C Program Using Scanf Function


Posted in: Programming | Response(s): No Comments yet - Be the first to respond!

Tests For The Parts Of Speech

Posted on: Monday, October 27th, 2008 | Written by Wakish

tests + scientific lady

Previously in the English Language Basics series, I explained about:

star A Quick Recap

1) Parts of speech are classes or groups into which words are divided or classified according to their use in speech of writing. There are eight classes or parts of speech: noun, pronoun, verb, adjective, adverb, proposition, conjunction, interjection.

2) We have also seen that a word can be used as various parts of speech, that is, it is polymorphic.
Example:

  • This is a light room
  • Sarah will light the gas
  • The light is dim right now

As you can observe, the word ‘light‘ is being used under the same form, but conveying different meaning in each sentence. With simple sentences, such as above, it might be easy to guess their form, but what about when sentences get complex? This is why I have brought forward the ‘Test For Parts Of Speech‘.

star How To Find Out The Parts Of Speech Of Words?

The following questions should be asked:
1) Find out which words in the sentence is saying something about an object?
=> Those words are verbs

2) Which words are names?
=> These are nouns

3) Which words stand in the place of nouns?
=> These are pronouns

4) Which words describe or qualify a noun or pronoun?
=> These are adjectives

5) Which words modify other groups of words (aka parts of speech)?
=> These are adverbs

6) Which parts of speech show the relation of an object to something else?
=> These are prepositions

7) Which are merely exclamatory?
=> These are interjections

star The Test At Work - The Example

Consider the sentence:
‘The CEO of the firm immediately asked problogger whether he would accept this small gift’.

The analysis:

1) Words like ‘asked‘, ‘would accept‘, make statements; they show an action - hence these are verbs.

2)CEO‘, ‘firm‘, ‘problogger‘, ‘gift‘ are names. They are thus nouns.

3)he‘ stands for ‘problogger‘, so it is a pronoun.

4)the‘, ‘motivated‘, ‘this‘, ‘small‘ describe ‘CEO‘, ‘problogger‘, ‘gift‘ respectively - they are adjectives.

5)immediately‘ tells us something about the ‘asking‘, it tells us when that action took place - It’s an adverb.

6) whether‘ joins the two sentences: ‘The CEO.. problogger‘ and ‘he… gift.
Therefore, it is a conjunction.

7) The word ‘of‘ connects the nouns ‘firm‘ and ‘CEO‘, it is obviously a preposition.

star Daily Short Exercise For You - The Reader!

=> Break the sentence of the example above into: subjects, predicates, verbs and objects..etc.
bulb Hint: Read Anatomy Of A Simple Sentence


Posted in: English Language Basics, Good Writing Skills | Response(s): (2) Comments made - Say your part!

Special Words You Can Use In GP Essays - Enrich Your English Language Vocabulary - Edition 02

Posted on: Sunday, October 26th, 2008 | Written by Wakish

enrich words + flower

Previous Edition:
=> Explaining Meaning Of 5 Words And Writing Sentences - Enrich Your English Language Vocabulary - Edition 01

1) Disseminate ==> spread widely

In our present era, it is seemingly difficult to disseminate a culture of non-violence.

2) Eradicate ==> destroy completely

Forests are being eradicated at an alarming rate for industrialisation and development purposes.

3) testimony ==> demonstration

The global warming is a conspicuous testimony of the impact of industrialisation.

4) Misconceptions ==> wrong ideas

In Mauritius, many misconception have emerged due to the advent of the Cyber-City.

5) Accumulate ==> form an increasing quantity

Doing regular physical exercises, is surely one of the best ways to stop fats accumulating in the human body.

Read More Related Vocabularies:
=> Good Writing Skills –> Enrich English Language

star Daily Short Exercise For You - The Reader!

1) Use the above words to make your own sentences, can you?
2) Explain the meaning of the following words, as I have used them in the above examples, and make sentences with them:
- alarming
- seemingly
- conspicuous
- advent

bulb Use the comment form below to show your answers..


Posted in: Enrich English Language, Good Writing Skills | Response(s): No Comments yet - Be the first to respond!

Integration Of Google Analytics With AdSense

Posted on: Sunday, October 26th, 2008 | Written by Wakish

google + adsense + analytics

This is an astonishingly wonderful news. Google finally grants the requests of his publishers for more data to help them run their AdSense campaigns.
But this functionality is not yet available to all, as google explains:

“We’re gradually rolling out this functionality to publishers, and you’ll see an invitation link at the top of your ‘Overview’ and ‘Advanced Reports’ pages when it’s been enabled for your account”

star Distinguished Features Of This Innovation

1) Access to indepth reports about visitors’ activities
2) Access to granular reports that break down AdSense performance both by page and by referring site

Google believes:

“Armed with this new data about user behavior, you’ll be able to make more informed decisions on how to improve the user experience on your site and optimize your AdSense units to increase your revenue potential.”

star Demo Of AdSense Reporting Using Analytics


Read more about the whole news here..


Posted in: Making Money Online | Response(s): No Comments yet - Be the first to respond!
Close
E-mail It