#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

int main(void)
   string str= "Hello";
   int l =strlen(str);
   string str2[l-1];
   char c;
   for(int i=0,n=l; i<n; i++){
       c= str[i]+1;
       str2[i] =get_string("%c",c);
   printf("str %s\n",*str2);


~/pset2/caesar/ $ debug50 ./just
[2]+  Stopped                 debug50 ./just

i am here using the cs50's ide and as you can see after the 'I' is printed the loops does not go for print the second letter. so i have to get control over the program by using ctrl+z

You must log in to answer this question.

Browse other questions tagged .