Overriding Function in C

Can we override a function in C

Page 1 of 1

2 Replies - 556 Views - Last Post: 13 December 2009 - 06:12 AM Rate Topic: -----

#1 vivekgiri  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-December 09

Overriding Function in C

Posted 13 December 2009 - 05:36 AM

Can we override a function in c in this manner


main()
{ 
clrscr();
} 
clrscr();

This post has been edited by JackOfAllTrades: 13 December 2009 - 07:45 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Overriding Function in C

#2 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Overriding Function in C

Posted 13 December 2009 - 06:06 AM

Your question doesn't mean anything.

Please try rewording it so an answer is possible.
Was This Post Helpful? 0
  • +
  • -

#3 fushar  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 32
  • Joined: 12-December 09

Re: Overriding Function in C

Posted 13 December 2009 - 06:12 AM

Is the second clrscr(); a function call? You cannot call a function (or execute any statement) outside a function. It must be inside main() or inside some functions.

Or did I misunderstand your question?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1