LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2012, 01:51 PM   #1
Shahid nx
Member
 
Registered: Jan 2012
Posts: 46

Rep: Reputation: Disabled
scope resolution operator for function?


Hi Sir/friends,
I got one old code written in pure C to analyze but i found here using scope resolution operator for function. Can we use scopre resolution operator in C. IF yes then please tell me why we use and how we use scope resolution operator in C.

Thanks and regards,
shahid nx
 
Old 08-03-2012, 03:27 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'm not really sure what your question is. Can you please post a simple example of what you want to achieve? If by "scope resolution operator", you mean "::", you don't have that in C. It's a C++ operator used to tell the compiler which namespace or class an identifier belongs to. Why do you want to use the scope resolution operator?

Last edited by Nylex; 08-04-2012 at 01:00 AM.
 
Old 08-05-2012, 07:33 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C Enum not recognized in local function scope sneakyimp Programming 3 07-29-2010 10:36 PM
what is the function of this operator "-" in linux khalidpashamce Linux - Newbie 15 09-27-2009 07:49 PM
C++ overloaded operator 3 times faster than c function call ? cant work out why ? qwijibow Programming 6 01-07-2008 07:18 PM
scope of an object and global scope lucky6969b Programming 7 12-09-2005 09:09 PM
KDE- Out of Resolution Scope vijayind Fedora 2 02-23-2005 06:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration