\Device\NUL
someone who knows how to work with burp suite?
Set up burpsuite proxy to the browser , when your browser doing some request it will intercept
Artur
#define TEST() std::cerr << pSomeVar ; int main() Static const char* pSomeVar = “...”; TEST()
Now how can we get rid of macro in that instance ? Assuming we have this kind of usage in 1000000 places and physically we can’t modify the function signature
Yumangi
Set up burpsuite proxy to the browser , when your browser doing some request it will intercept
I have already done it and it gives me an error when I send the attack.
Artur
Each variable is defined inside each separate function for example inside int main our pSomeVar = “...”;
Artur
In other function it may equal “—-“ anything any string
klimi
and your goal is?
klimi
to remove the macro but to use the variable in the context?
Artur
and your goal is?
The goal is to get rid of macro
Ilia
Hi all! I have a question regarding to C I didn't declare function. Only wrote definition void Test() after main In main system found my function call to Test() and implicitly declare it for me with such signature I suppose "int Test()" Question is "Why when I try to call this function system doesn't generate ERROR cause of using void in expression" Yes in default declaration there is INT but in definition VOID
Ilia
Because void mean nothing, so returning void means returning nothing
Nope. If i will change void in declaration it will generate error. We can not use void in expression like + Question is how system understands where to look for returning value IMPLICIT Declaration or Definition
\Device\NUL
you dont understand me.
You mean like void + x will give error ?
Ilia
You mean like void + x will give error ?
Too bad that i can not attach screen here. I mean that: If i have implicict declaration of Test() in main funct it will be int Test() But in definition I have void Test() I expect error becasuse void + x should be error. But it look to declaration not definition and in declatation there is INT and no error in result
Ilia
i cant understand this behaviour
Ilia
and use its returning value in expression but no error there
Ilia
why(
Leovan
And you just call int test()
\Device\NUL
exactly and after between them i call test() in main
I got error main.c:11:5: error: conflicting types for 'test' int test(void) ^ main.c:1:6: note: previous declaration is here void test(void); ^ 1 error generated.
Ilia
Owww In function protoype void test() In function declaration int test() like that ?
sorry my mistake 1. Prototyping is also declaration 2. I have another form i will show you bellow Declartion No any declartion Main printf("test %d", Test()) -> no error -> generates int Test() implicitly Definition void Test()
Ilia
why it looks INT in implicitly generate declaration no in definition where returning value void?
\Device\NUL
why it looks INT in implicitly generate declaration no in definition where returning value void?
Because you can't print void value, so compiler implicitly change void return value, into int
Ilia
Because you can't print void value, so compiler implicitly change void return value, into int
I dont think so. You can not change void to int or can?. It just refers to INT in declaration somehow. And i want to know how :(
\Device\NUL
What compiler are u using ?
Ilia
Using -E ?
dont know what is this for now sorry
\Device\NUL
dont know what is this for now sorry
I got error on clang main.c:7:20: error: argument type 'void' is incomplete printf("%d\n", test());
Ilia
No thanks, stay on the group
but we can not send pictures here
\Device\NUL
but we can not send pictures here
I treated warning as error btw
\Device\NUL
yes I though so
So your code is wrong
Ilia
I made it wrong myself to understand how it works. Question here is how compiler solves missmatch in returning value between implicitly created declaration and definitions with same identificator
Ilia
It gives error in both clang and gcc
you dont recreate it properly then. Whatever. Thank you
\Device\NUL
you dont recreate it properly then. Whatever. Thank you
Maybe you can share the code here or post long code on pastebin. Hope other member will answer your question
yyrr
Guys why i run the do while loop in second time it just show the condition?
Ilia
Maybe you can share the code here or post long code on pastebin. Hope other member will answer your question
1. works like expected https://www.onlinegdb.com/ty5aeugovg 2. doesnt work like expected https://www.onlinegdb.com/XXy5HXqSM There are comments
Anonymous
strrev()
Aman
I have an issue in C can anyone help to sortout
Aman
#include <stdio.h> #include <conio.h> #include <limits.h> #include <float.h> #define _ printf("\n Minimum #define __ printf("\n Maximum void main() { _ short|short int|signed short|signed short int : %d",SHRT_MIN ); __ short|short int|signed short|signed short int : %d",SHRT_MAX ); _ unsigned|short|unsigned short int : %u",O); __ unsigned short|unsigned short int : %u", USHRT_MAX ); _ int|signed int : %d", INT_MIN ); __ int|signed int : %d", INT_MAX ); _ unsigned int : %u", O ); __ unsigned int : %u", UINT_MAX ); _ long|long int|signed long|signed long int : %ld", LONG.MIN ); __ long|long int|signed long|signed long int : %ld", LONG.MAX ); _ unsigned long|unsigned long int : %lu", O ); __ unsigned long|unsigned long int : %lu", ULONG.MAX ); _ float : %e", FLT MIN); __ float : %e", FLT_MAX); _ double : %e", DBLMIN); __ double : %e", DBLMAX); _ long double : %Le", LDBL_MIN); __ long double : %Le", LDBL_MAX); }
Aman
My this Code not Runnig pleas check what is the issue ?
Dima
WHAT the hell
Aman
? 🙄
Abdullah
😒
Roman
are there something like generics in c?
Aryan
Give me some advice about OOPS IN c++
Jojo
Hello give road map of beginner to advance in c/c++
Ömer
"Enter the number : 5" 12345 23451 34512 45123 51234
Dumb
are there something like generics in c?
Maybe I'm wrong but there aren' t
Bohdan
Christian
hi guys
Christian
long nc; nc=0; while (getchar() != EOF) ++nc; printf("%ld\n", nc);
Christian
do you know why it doesn't print the value of nc?
Anonymous
Agree
Anonymous
Simple program about While loop do while plz
Anonymous
Send
Michel
long nc; nc=0; while (getchar() != EOF) ++nc; printf("%ld\n", nc);
You sure that %ld is the code for long? long ≠ long int
\Device\NUL
You sure that %ld is the code for long? long ≠ long int
Really ? I though long is equal to long int
\Device\NUL
do you know why it doesn't print the value of nc?
Does the while loop end ? Send EOF signal first
Christian
Does the while loop end ? Send EOF signal first
If I include the printf inside the cycle it prints correctly
Michel
Really ? I though long is equal to long int
I think I read long size might differ across systems
Christian
But the strange thing is it prints if the printf is inside the while loop
Christian
It doesn’t print anything when I put it outside
\Device\NUL
I think I read long size might differ across systems
Yes, it's true. but it doesn't have any relation with long int
\Device\NUL
So which one could I try?
Nothing wrong with you code