difference between c/c++ - "Not all C is C++"
4 posters
Page 1 of 1
difference between c/c++ - "Not all C is C++"
eveyone knows c++ is made compatible with c but still ther are few codes which run fine on c but when we run the same using g++ compiler it gives error.
write such situation and why such things are not implemented in c++
write such situation and why such things are not implemented in c++
mnnit.rahul- Posts : 51
Join date : 2009-02-01
Re: difference between c/c++ - "Not all C is C++"
int func()
in c++ is same as
int func(void)
but in c it means any number of arguments of any datatype.
in c++ is same as
int func(void)
but in c it means any number of arguments of any datatype.
ramthegreatcv- Posts : 55
Join date : 2009-01-30
Age : 36
Re: difference between c/c++ - "Not all C is C++"
are bahi logo aur bahut se cases aese hai jahan c program run karta hai but c++ error deta hai.kuch to post karo
mnnit.rahul- Posts : 51
Join date : 2009-02-01
Re: difference between c/c++ - "Not all C is C++"
yes, there is some thing with static variables being external by default in c...right??
but can anybody give an proper example,with explanation.
but can anybody give an proper example,with explanation.
ramthegreatcv- Posts : 55
Join date : 2009-01-30
Age : 36
Re: difference between c/c++ - "Not all C is C++"
in C++ function declaration is must before its use...but in C bina declaration ke bhi cal jaata hai....
shivang- Posts : 42
Join date : 2009-01-30
Age : 35
Re: difference between c/c++ - "Not all C is C++"
in C anything can be assigned to void pointer. But in C++ nothing can be assigned to void pointers unless typecasted.
Beagle- Posts : 40
Join date : 2009-01-30
Re: difference between c/c++ - "Not all C is C++"
in C ,a function if declared without a return type,its automatically taken as int.
not the case in c++(i think its an error).
not the case in c++(i think its an error).
ramthegreatcv- Posts : 55
Join date : 2009-01-30
Age : 36
Re: difference between c/c++ - "Not all C is C++"
in c function with no argument represent any no of arguments while in c++ it represent no argument
abih to aur bhi difference hoge abhi to
abih to aur bhi difference hoge abhi to
mnnit.rahul- Posts : 51
Join date : 2009-02-01
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|