11 Mar 2015

Basic level c practice function set1




2.      main()

{

clrscr();

}

clrscr();

           

Answer:

No output/error

Explanation:

The first clrscr() occurs inside a function. So it becomes a function call. In the second clrscr(); is a function declaration (because it is not inside any function).


3.      main()

            {

            char name[10],s[12];

            scanf(" \"%[^\"]\"",s);

            }

            How scanf will execute?

Answer:

First it checks for the leading white space and discards it.Then it matches with a quotation mark and then it  reads all character upto another quotation mark.


4 comments:

  1. Nice post about finding the square root of any number in the shortcut method. This will be helpful in exams for latest govt jobs

    ReplyDelete
  2. However getting payday credits and their reimbursements include certain imperative angles. Thus we are endeavoring to answer all your general questions identified with Payday advances and we trust it will fill in as an apparatus to open up any puzzle encompassing payday advances or loan.

    ReplyDelete
  3. Most states have found a way to direct here and now loaning rehearses, however there are constantly sure organizations that attempt to discover an escape clause.

    ReplyDelete
  4. Most moneylenders will enable you to apply for a title advance through a safe online application or by telephone and let you know inside minutes in the event that you've been endorsed. You could have your trade out hand inside hours.

    ReplyDelete