Why is it just c programming segfault when I call printf ?
printf
#include<stdio.h> int main() { char* f; char* b; *f = 'x'; b = f; *b = 'y'; printf("%c", *f); }
I expect y to be printed. I'm looking for f to get the character, right?
f
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/955523/More articles:How to disable jftfdi jffi request parameters in JSF - jsfHarmonizing expressions for syntax highlighting - text-parsingJasperReports: how to show data in two columns - jasper-reportsPrinting a list of lists without parentheses - haskellHow to create custom Live templates with Intellij plugin - intellij-ideaRun CMD command without displaying it? - c #Why use ref for array parameters in C #? - c #MOXy JAXB prints invalid control characters for Unicode (u + 2019) when encoding UTF-8 - jsonFind the highest value for a hash array with shared keys? - ruby ββ| fooobar.comunsuccessful iterator implementation - javaAll Articles