GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  
 C  |  Question 87 of 87    Print  
Tell one difference which is in C and not in C++.
Can we pass arguments in main()
Difference between static and constant variable.

  
Total Answers and Comments: 7 Last Update: June 12, 2009     Asked by: harinisathiyamurthy 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: anandbabumca86
 
in c there is no oop concept but in c++ have oop conceop

Above answer was rated as good by the following members:
Pravina Vaidya, bhushan_pawar23
May 28, 2008 04:27:36   #1  
hrs1129 Member Since: May 2008   Contribution: 4    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
yes we can pass arguments if we pass argument ir would become commandline argument.
eventhough static and constant variable are common for alla objects the value of static variable can be increased in time being but it cannot be increased in constant variable

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
June 11, 2008 04:34:15   #2  
anandbabumca86 Member Since: June 2008   Contribution: 2    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
in c there is no oop concept but in c++ have oop conceop
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
June 24, 2008 02:42:40   #3  
sibarama.panigrahi Member Since: June 2008   Contribution: 2    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
In C program divide into number of sub-parts called function.
In C++ program divide into number of sub-parts called methods.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 24, 2008 02:44:49   #4  
sibarama.panigrahi Member Since: June 2008   Contribution: 2    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
In C program divide into number of sub-parts called function.
In C++ program divide into number of sub-parts called methods.



es we can pass argumentsin commandline.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
September 06, 2008 11:15:37   #5  
sandeepnegi037144 Member Since: March 2008   Contribution: 1    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
one thing in c but not present in c++

in C we need not to mention the header files for using the built-in functions.

but in C++ we must mention the header file for same purpose.

this is the very basic difference between these two languages

and when MAIN() have arguments this means that...

when we start program from command promt we can pass starting arguments to the program.
these r nothing but the values which the programmer things that must be there when program starts execution.

 
Is this answer useful? Yes | No
October 17, 2008 12:00:11   #6  
sridharrajan89 Member Since: October 2008   Contribution: 1    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.
OOPS concept is introduced in C++. Yes we can pass arguments in main.
 
Is this answer useful? Yes | No
June 12, 2009 01:19:18   #7  
yogeswari.km Member Since: June 2009   Contribution: 5    

RE: Tell one difference which is in C and not in C++.Can we pass arguments in main()Difference between static and constant variable.

Declaration of struct in C which is not the same as in C++.
We cannot pass arguments in main.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape