can someone explain to me why I don't get an output running the following code:
#include <stdio.h>/* count characters in input; 2nd version */
main()
{
double nc;
for (nc = 0;...
Type: Posts; User: Maor Elbaz
can someone explain to me why I don't get an output running the following code:
#include <stdio.h>/* count characters in input; 2nd version */
main()
{
double nc;
for (nc = 0;...
I changed it to pointer and it worked.
text itself is a pointer so why can't I use it?
when writing --> text = text+1; I'm changing the memory address that text contains, I'm causing it to point...
why can't I run this?
char text[]="nave"; char *pointer=text;
if(*text='n'){
printf(" \n the string equal to: %s",pointer);
*text='m';...
thanks for your replies
why does it result in undefined behavior?
is it possible to run this code?
#include <stdio.h>
int main(void) {
char *my_string="Hello";
printf("%s",my_string);
*my_string='w';
printf("%c",my_string);
Okay, thanks
there's something that I dont understand
how can you print a string using a pointer? what is the logic standing behind it?
like for example in the following code:
#include <stdio.h>
int...
when running the following code, why do I get two different memory addresses?
#include <stdio.h>
int main(void){
int short signed number=-3;
int short signed *pointer=&number;
Thanks for the explanation
Hi,
I'm learning C programming language at the moment.
Just out of curiosity what happens if the place holder and the argument is not compatible?
for example if I write: printf("some text %d,...