Questions tagged [initializing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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
1 answer

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
1 answer

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
2 answers

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 = ...