Questions tagged [initializing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Problem set 1 Mario variable issue

I've been staring at my computer for so long trying little tweeks to fix the error message. TLDR how do I stop the shadow message from appearing and initialize variable h? The image looks confusing ...
0
votes
1answer
23 views

where to initialize the variable that keeps track of the blank space

I am working on "Move" of exercise Fifteen in PSET3 of CS50. I am unsure about how to keep track of the blank space. I have tried to add the row and column number of the initial blank space as a ...
0
votes
1answer
78 views

why is initialization of variable is important?

I can straight away store my calculated value in the uninitialized variable? in worst case scenario what will happen?(even though i dont find any compiling/logical error)
0
votes
2answers
115 views

PSET2 Initiallizing - segmentation fault

#include <stdio.h> #include <cs50.h> #include <string.h> int main(void) { printf("type your name: "); string name = GetString(); string initial = NULL; for(int i = ...