Questions tagged [initializing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 1
0 votes
1 answer
80 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)
user avatar
0 votes
2 answers
119 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 = ...
user avatar
  • 1