布尔值,运算符和&之间的区别操作员 [英] difference between boolean, operator, & operator
本文介绍了布尔值,运算符和&之间的区别操作员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
给出有关布尔值,运算符和运算符的简短描述
give brief description about boolean, operator,&operator
推荐答案
boolean smartGuy = (readingBook || usingGoogle) && !askingSillyQuestions;
足够简短?
:)
brief enough?
:)
//这是布尔运算符
boolean Continue = true;
while(继续)
printf(它在循环中继续")
//它是abt运算符
int a = 5;
int b = 6;
int c;
c = a + b; //这里``+''是添加操作数的运算符
//是abt&operator
int A = 5;
int B =&A;//b值是a
的地址 printf("A和B值:%d%d",a,b);
/*
这里的输出将是A和B值:5 5675
*/
// it''s abt the boolean operator
boolean continue=true;
while(continue)
printf("it continues in the loop")
// it''s abt operator
int a=5;
int b=6;
int c;
c=a+b; //here ''+'' is the operator adding the operands
// it''s abt &operator
int A=5;
int B=&A;// b value is address of a
printf("A and B value:%d %d",a,b);
/*
here the output will be A and B value:5 5675
*/
您需要的一切都在此处 [^ ]
RTFM .
Everything you need is here[^]
RTFM.
这篇关于布尔值,运算符和&之间的区别操作员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文