Hi Everyone,
Below is the snippet of code that I was trying to execute
typedef char s8;
typedef unsigned char u8;
Type: Posts; User: shaswat
Hi Everyone,
Below is the snippet of code that I was trying to execute
typedef char s8;
typedef unsigned char u8;
Many thanks to all the res-ponder and @rusyoldguy thank you for these details.
and correct me if I am wrong about the removal of keyword "register" is because modern CPU itself capable to do that...
@jimblumberg: Thanks, and yeah its my bad that I played with the compiler setting last night and didn't change it at all.
Hello Everyone,
Greeting for the day!
I have seen this code at some portal and thought to give it a try.
Thanks @flp1969...Never thought that function pointer can be useful in that case too..
Hi Salem,
Thanks for the post, but I did not get your answer..
Could you please explain. Any particular objective to do such level of "misdirection" (with no comments at all...at-least it is...
Sorry friend, it seems that the element
"itype"
of structure "term_titem_t" are not directly assigning and being called anywhere in code. It is only been used as argument to function.
Also...
Greeting to Everyone,
I have been asked by my friend the explanation of the usage and functionality of this typedef
(highlighted as //Issue01) but it seems complicated to me as well.
...
Hello Everyone,
Somewhere on web, I got this code example of structure (I don't remember but it was something like the snippet below):
#include <stdio.h>
#include <stdlib.h>
Thanks mate. That help's
Hello everyone.
I have been trying to solve one competitive problem on Contest Page | CodeChef.
While trying to compare two strings, I used if statement
if(ar[i].string==ar[j].string)...
I tried "%121[RS]" and still after scan it for first time, it prints the same string for the next 10 times.
Few more points I tried:
Lets say I entered "RSRSY", in that case , the output was...
Hello Everyone!!
While I was trying some online C language quiz, I was stuck in problem where the constraints was to take strings that only have 'R' an 'S' letter. I searched it online and got...
Thanks for elaborating and such a great answer. Your answer leads me to understand more about typedef's.
Hi All,
I was wondering that why this snippet of code gives error
struct{
u8 Address1;
u8 Address2;
}st_varib;
Probably I find the answer by myself. The function is defined as a regular function outside the class that makes it Non-member function.
The definition of is explain after the next page. I think...
Hello,
I am a newbie and learning C++ by myself from online. I was studying about the keyword Friend and here is the piece of sample code
class Myclass
{
public:
Hi laserlight,
Your answer was perfect and I got your's but just wanted know from others also.
Hi,
Any explanation about typecasting an arithmetic value like I asked
if(i==(u8)4)
What's the reason behind it?
Hi All,
Which one is correct way
if(i==4)
{
/*Do something*/
}
Here is the snippet of code. I get missing # in my output. I replaced # with the other special character i.e. "@" & "!", but then I get error.
#define str(x) #x
#define Xstr(x) ...
I have a device that have some communication protocols and it will respond and send some specific data when somebody communicates with the device. I tried to build a C code that will send those...
I start working on CodeBlocks and stuck in a situation. The situation is that I want to clear my output screen every time the main function calls some other functions. To do that I use clrscr()...
As a begineer I write a program of adding the places of a digit.
#include<stdio.h>#include<conio.h>
void main()
{
clrscr();
int a,b,sum=0,e,z;
printf("Enter the digit");