@Don.Its illegal in c(Or in c99) to initialize a variable with anything other than a constant. @pacific No c structures do not support constructor(Or destructor)
On Mar 18, 9:08 am, pacific pacific <pacific4...@gmail.com> wrote: > Does C struct have constructor ? > > > > On Fri, Mar 18, 2011 at 12:55 AM, Don <dondod...@gmail.com> wrote: > > int n = printf("Hello\n"); > > > int main() > > { > > > } > > > On Mar 17, 8:08 am, himanshu kansal <himanshukansal...@gmail.com> > > wrote: > > > is there any way to print hello in c also wdout writing anythng in > > > main().... > > > > On Thu, Mar 17, 2011 at 6:34 PM, kunal srivastav < > > kunal.shrivas...@gmail.com > > > > > wrote: > > > > noooo...c does not support classes > > > > > On Thu, Mar 17, 2011 at 6:10 PM, himanshu kansal < > > > > himanshukansal...@gmail.com> wrote: > > > > >> is this possible in c also???? > > > > >> On Wed, Mar 16, 2011 at 11:57 PM, Manikanta < > > manikantabab...@gmail.com>wrote: > > > > >>> Thats right in C++. How about in C. > > > > >>> On Mar 16, 9:44 pm, kumar anurag <anurag.it.jo...@gmail.com> wrote: > > > >>> > @anurag good..... > > > >>> > On Wed, Mar 16, 2011 at 9:28 PM, Anurag atri < > > anu.anurag....@gmail.com > > > >>> >wrote: > > > > >>> > > #include<iostream> > > > >>> > > using namespace std ; > > > >>> > > class a > > > >>> > > { > > > >>> > > public : > > > >>> > > a() { cout<<"hello";} > > > >>> > > }a1; > > > >>> > > int main() > > > >>> > > { > > > >>> > > } > > > > >>> > > On Wed, Mar 16, 2011 at 8:25 PM, himanshu kansal < > > > >>> > > himanshukansal...@gmail.com> wrote: > > > > >>> > >> How can u print "hello" in a c/c++ program without writing a > > single > > > >>> > >> word in main() function.... > > > > >>> > >> -- > > > >>> > >> You received this message because you are subscribed to the > > Google > > > >>> Groups > > > >>> > >> "Algorithm Geeks" group. > > > >>> > >> To post to this group, send email to algogeeks@googlegroups.com > > . > > > >>> > >> To unsubscribe from this group, send email to > > > >>> > >> algogeeks+unsubscr...@googlegroups.com. > > > >>> > >> For more options, visit this group at > > > >>> > >>http://groups.google.com/group/algogeeks?hl=en. > > > > >>> > > -- > > > >>> > > Regards > > > >>> > > Anurag Atri > > > > >>> > > -- > > > >>> > > You received this message because you are subscribed to the > > Google > > > >>> Groups > > > >>> > > "Algorithm Geeks" group. > > > >>> > > To post to this group, send email to algogeeks@googlegroups.com. > > > >>> > > To unsubscribe from this group, send email to > > > >>> > > algogeeks+unsubscr...@googlegroups.com. > > > >>> > > For more options, visit this group at > > > >>> > >http://groups.google.com/group/algogeeks?hl=en. > > > > >>> > -- > > > >>> > Kumar Anurag- Hide quoted text - > > > > >>> > - Show quoted text - > > > > >>> -- > > > >>> You received this message because you are subscribed to the Google > > Groups > > > >>> "Algorithm Geeks" group. > > > >>> To post to this group, send email to algogeeks@googlegroups.com. > > > >>> To unsubscribe from this group, send email to > > > >>> algogeeks+unsubscr...@googlegroups.com. > > > >>> For more options, visit this group at > > > >>>http://groups.google.com/group/algogeeks?hl=en. > > > > >> -- > > > >> You received this message because you are subscribed to the Google > > Groups > > > >> "Algorithm Geeks" group. > > > >> To post to this group, send email to algogeeks@googlegroups.com. > > > >> To unsubscribe from this group, send email to > > > >> algogeeks+unsubscr...@googlegroups.com. > > > >> For more options, visit this group at > > > >>http://groups.google.com/group/algogeeks?hl=en. > > > > > -- > > > > thezeitgeistmovement.com > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Algorithm Geeks" group. > > > > To post to this group, send email to algogeeks@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > algogeeks+unsubscr...@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/algogeeks?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to algogeeks@googlegroups.com. > > To unsubscribe from this group, send email to > > algogeeks+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en. > > -- > regards, > chinna. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.