I have some doubt the following code
#include <stdio.h>
int main ()
{
/* local variable definition */
char grade = 'B';
switch(grade)
Type: Posts; User: thannara123
I have some doubt the following code
#include <stdio.h>
int main ()
{
/* local variable definition */
char grade = 'B';
switch(grade)
Sorry for my mistake , thanks for the advise
I was mistyped the correct code is
for(i=0;i<8;i++)
if(a[j]>>i & 1)
{
// bit is one
}
i didnt get answer there correctly thats why i posted , may i did wrong ?
array is a 8 bit number not a single bit . in this 8 bit need to check whether it is zero or one .
I have an array a[j] . In it has an 8 bit binary digit . I need to check each bit whether it was zero or one . How to write the program in C .
for(i=0;i<8;i++)
{
b = i>>a[j]&&1;
...
I need like the following example
int a = 5; // binary: 0000000000000101
int b = a << 3; // binary: 0000000000101000, or 40 in decimal
int c = b >> 3; // binary:...
sorry Nothing get
I re-edited
sorry , i am posting the my testing program
#include<stdio.h>
#define left........by1 a=a<<1;
int main()
{
int8 a = 7;
printf("%d\n ", a);
left........by1;
i want to declare variable wit 8 bit only
i want to use shift operator in that 8 bit and need to display .
whenever i use the shift operator in 8 bit variable it goes to 16 bit :confused:
Hello I cat declare cannot declare int8 variables
why I can do that ?
I am using MINGW compiler?
I think wherever need higher speed
byte[i] <<= 1; what does it mean ?
what does mean as follows if loop
if(1)
{}
or what does mean
Hello experts i need a binary to decimal code .
i am interfacing an ADC toa controller to display the the corresponding voltage .
i googled got a lot of but i am facing some confusion please any...
can i get that link ?
Hello i want to know it works
LCDPORT = ((c >> 4) & 0x0f) | EN | RS;
c is 8bit
RS and EN is a single bit
please anyone help me with some example thanks
hello experts i am learning K&R array program i have a lot of doubts please help me
How the output shows as digits = 2 1 1 1 1 1 1 1 1 1 ?
#include<stdio.h>
int main()
{
int...
thanks for reply
Now it is okay ...
I was tried out it also but not worked ....
Hello masters,
I am beginers i installed Eclipse IDE for C/C++ Developers (Kepler Release).
and instaled cygwin and set the path as ;C:\cygwin\bin.
I can able to build but cant run
when I Run...
thanks the reply i understood sir
Thanks
Thanks , am clear ...
whenever a character type ,this program first decide it is a word and set state = IN(till the white space newline ,\t,) (i was expect a reverse style :rolleyes:)..
sir i...
Hello Masters ,
I am learning C programming from K & R text .
i dont understand the wordcounting programing .
How is working ?
please help me
#include<stdio.h>
#define IN 1
#define...