What is the error.. ??
#include <stdio.h>
int main()
{
int a,b,c;
switch(switch(a=4,b=8,c,c=0)+5)
{
case 4: printf("We are foolish\n");
case 8: printf("But\n");
case 0: printf("U r brainy");
}
return 0;
} 6 1184
asit <li*****@gmail.comwrites:
switch(switch(a=4,b=8,c,c=0)+5)
Among other problems, switch is not an operator, so you cannot
use it within an expression.
--
"I hope, some day, to learn to read.
It seems to be even harder than writing."
--Richard Heathfield
asit wrote:
What is the error.. ??
#include <stdio.h>
int main()
{
int a,b,c;
switch(switch(a=4,b=8,c,c=0)+5)
{
case 4: printf("We are foolish\n");
case 8: printf("But\n");
case 0: printf("U r brainy");
}
return 0;
}
Please get a decent book on C and work your way through it. You don't
have the slightest idea how to use most of the things you try.
You waste your time and ours.
Brian
>>>>"a" == asit <li*****@gmail.comwrites:
aWhat is the error.. ??
Not including, in your request, a description of the expected behavior
and why you expect it and the behavior you actually see.
Charlton
--
Charlton Wilbur cw*****@chromatico.net
asit <li*****@gmail.comwrote:
What is the error.. ??
The error is you believing that comp.lang.c is a do-my-homework service.
It is not. Do your own bleedin' homework, Jock.
Richard
Richard Bos wrote:
asit <li*****@gmail.comwrote:
>What is the error.. ??
The error is you believing that comp.lang.c is a do-my-homework service.
It is not. Do your own bleedin' homework, Jock.
Richard
Time for a plonk methinks...
asit wrote:
What is the error.. ??
#include <stdio.h>
int main()
{
int a,b,c;
switch(switch(a=4,b=8,c,c=0)+5)
{
case 4: printf("We are foolish\n");
case 8: printf("But\n");
case 0: printf("U r brainy");
}
return 0;
}
What does your compiler say? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: E. Robert Tisdale |
last post by:
What makes a good C/C++ programmer?
Would you be surprised if I told you that
it has almost nothing to do with your knowledge of C or C++?
There isn't much difference in productivity, for...
|
by: atv |
last post by:
Whatis the proper way to handle errors from function calls?
For example, i normally have a main function, with calls to mine
or c functions. Should i check for errors in the functions called...
|
by: Daniel Rudy |
last post by:
What is wrong with this program? When I try to compile it, I get the
following error. Compiler is gcc on FreeBSD.
strata:/home/dcrudy/c 1055 $$$ ->cc -g -oe6-3 e6-3.c
e6-3.c: In function...
|
by: Jason Huang |
last post by:
Hi,
Would someone explain the following coding more detail for me? What's the
( ) for?
CurrentText = (TextBox)e.Item.Cells.Controls;
Thanks.
Jason
|
by: Protoman |
last post by:
Could you tell me what's wrong with this program, it doesn't compile:
#include <iostream>
#include <cstdlib>
using namespace std;
class Everything
{
public:
static Everything* Instance()
|
by: Xah Lee |
last post by:
in March, i posted a essay “What is Expressiveness in a Computer
Language”, archived at:
http://xahlee.org/perl-python/what_is_expresiveness.html
I was informed then that there is a academic...
|
by: brian |
last post by:
i broke down where i think the problems areas would be.
any help would be greatly appreciated.
where the file is called
<script type="text/javascript" src="k.js">
</script>
the beginning...
|
by: grizggg |
last post by:
I have searched and not found an answer to this question. I ran upon
the following statement in a *.cpp file in a member function:
static const char * const pacz_HTMLContentTypeHeader =...
|
by: Trent |
last post by:
Here is the error while using Visual Studio 2005
Error 1 error LNK2019: unresolved external symbol "void __cdecl
print(int,int,int,int,int,int,int,int)" (?print@@YAXHHHHHHHH@Z) referenced
in...
|
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= |
last post by:
Hi,
I would like to have someone comments on what's the best practice
defining error codes in C.
Here's what I think:
solution A:
using enum
pros: type safe. better for debug (some debugger...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |