All Questions
2 questions
0
votes
2
answers
18
views
Getting segmenatation fault even though i freed memory
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef uint8_t BYTE;
int main(int argc, char *argv[])
{
// Only allow 2 command line arguments
if (argc != 2)
...
0
votes
1
answer
49
views
What will happen if you assign a static value to a pointer in C?
In this example, what will it happen if I assign for example:
pk = 6;
Thanks!