|
|
|
|
![]() ![]() |
Jul 27 2006, 03:34 PM
Post
#1
|
|
|
Binary Geek Group: Members Posts: 444 Joined: 4-November 05 From: The Digital Arena Member No.: 9,440 |
Ok, well here is the Second part of the tutorial i promised.
Operators & Expressions in C Introduction
Syntax ( Data type) Expression Eg. ((int) Unary Operator:
Eg: ++a, a++
Eg. : --a, a--.
Relational and Logical Operator: Relational Operators :
ans= (i<=10) ? 0 : 1 Yeap, well that wraps up the Conditional Operators topic. As suggested, i would post some examples of code later on, but till then you could go through these basic guidelines and perfect them. Hope this helped Regards Dhanesh. |
|
|
|
Jul 28 2006, 03:29 PM
Post
#2
|
|
|
Advanced Member Group: Members Posts: 130 Joined: 22-May 06 From: India Member No.: 13,593 |
Alright, that did make a great Part II, and you didn't screw up any code this time either! Good work, but you missed out some things (Of course you can't teach C Prog. in 2 parts Honestly, you should be adding some examples and some assignments too, as a good tutor!!! This post has been edited by Omkar™: Jul 28 2006, 03:30 PM |
|
|
|
Jul 29 2006, 05:56 AM
Post
#3
|
|
|
Binary Geek Group: Members Posts: 444 Joined: 4-November 05 From: The Digital Arena Member No.: 9,440 |
LOL omkar .. true but hard to believe, I'll kill someone if they dont understand what i teach .. lol
As for Part 3 .. Its all yours, really .. I havent started yet .. so whenever you get time .. go on and complete whatever i have missed out. Its not easy to complete C in 2 parts true, so i hope you will add up a few pointers for us then Thankx for your comments. Regards Dhanesh. |
|
|
|
Jul 29 2006, 01:36 PM
Post
#4
|
|
|
Premium Member Group: Members Posts: 342 Joined: 31-July 05 Member No.: 7,540 |
Hey Dhanesh
Long time no see, digital brother. <LOL Wow I am just amazed at how much you guys are literate in computer programming languages. For me, it's HTML and I only know the basics. Well, it's kinda sad but I guess it can hold out for a little time being while I go try to learn PHP. Can someone answer my question: How can you benefit from being literate in C programming and C++?? What about C++ Visuals? Is that another programming language too? By the way, wonderful job there, Dhanesh. Kudos for you. |
|
|
|
Jul 29 2006, 02:37 PM
Post
#5
|
|
|
Binary Geek Group: Members Posts: 444 Joined: 4-November 05 From: The Digital Arena Member No.: 9,440 |
Hey Dhanesh Long time no see, digital brother. <LOL Aha .. the Hobbes of asta Can someone answer my question: How can you benefit from being literate in C programming and C++?? What about C++ Visuals? Is that another programming language too? I think the best people to answer this would be people who are INTO programming. But lets see, by learning C / C++ which are the foundation of any programming languages today, you would be able to design/program applications flexibly. Visual C++ is a form of basic command C/C++, just with a pretty GUI and with the title of M$, i have seen people who prefer the basic C/C++ more to the Visual C++. One major difference would be the syntax, Different programming languages have different syntax, but its easy to cope up when you are fluent with 1 basic language. I love to work on Visual Basic, and to be honest, i have to be changing that, cause tho VB might seem easy with GUI and stuff, its not so flexible as command C/C++ ..Hope you get the basic point .. Anyone else who can elaborate on this is welcome Hope you see more of you around Hobbes ... lol Regards Dhanesh. |
|
|
|
Oct 18 2006, 01:11 PM
Post
#6
|
|
|
Newbie [ Level 1 ] Group: Banned Posts: 1 Joined: 18-October 06 Member No.: 16,655 |
These are old knowledge... I miss them sooo!!
|
|
|
|
Oct 18 2006, 03:35 PM
Post
#7
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 1,980 Joined: 16-August 05 Member No.: 7,896 |
QUOTE Honestly, you should be adding some examples I agree. Mainle, I see what ++i is (it changes i to i+1). I would like to know what += means. if a=-1, += applied to a makes it change to -2 or to 0 ? |
|
|
|
Oct 19 2006, 02:10 AM
Post
#8
|
|
|
'Prentice de-Zighner Group: Members Posts: 368 Joined: 23-January 05 From: USA Member No.: 2,290 |
Hey Dhanesh, hobbes
I've been studying Visual Basic for the past few weeks now as a course in school. It's getting a little more complicated now that i've moved up to ifs and elses. Some of the operators i see used in C (as you have portrayed) is really similar to that of Visual Basic, one difference i can point out though, is how to make equations equal, that is using the double equal sign (==). It reminds me of back when i was studying a little php. They say that Visual Basic is a good base before moving on to other languages such as C or C pluses, it doesn't seem so at first glance, and if you know me, I'm not a very good reading learner Going out of the topic for a moment. The book we're using in our Visual Basic course describes something about pseudocode. Where you actually incorporate understandable English language as code. A friend told me it is just a form of "laying out" your code into more understandable parts. But I'm wondering if pseudocode actually works as a language itself? |
|
|
|
Oct 19 2006, 05:53 AM
Post
#9
|
|
|
Member [ Level 2 ] Group: Members Posts: 70 Joined: 29-August 06 Member No.: 15,594 |
It was a good tutorial indeed. Though I did find some omissions.
1)First you didn't differntiate between a++ and ++a. May be you have a plan of explaining it later. 2) You have left out bitwise operators completely. (Operators like XOR-^ , OR- | , AND - & , NOT - ~ ). In fact along with the assignment operators you've mentioned, the following also hold good. |=, &=, ^=. 3)Also, there are bitshift operators. Bitwise left shift (<<) and bitwise right shift(>>) operators whih help in doing bitshifting operations. Once again I repeat I'm not sure if you have plans of covering these in your next part. But if you didn't have such plans, you can include these in your next part of the tutorial This post has been edited by SP Rao: Oct 19 2006, 05:57 AM |
|
|
|
Oct 20 2006, 08:23 AM
Post
#10
|
|
|
Teh Coder Group: Members Posts: 1,053 Joined: 18-April 06 From: Australia Member No.: 12,833 |
It looks like a great piece of information to me, Iv'e done DLL's and things in C++ and still didn't know some of that
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|