Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - amit14

#1
The Rumpus Room / Re: Happy Birthday Thread!
Mon 15/01/2018 18:33:49
happy birthday to me
well according to the Indian standard time , it has started
#2
Quote from: Crimson Wizard on Mon 01/01/2018 18:49:24
link=topic=36356.msg636578439#msg636578439 date=1514820178]
amit14, frankly, this is a kind of question that is normally answered by reading a book.

Also, I meant to mention this earlier, although this is only my opinion, but if you are just beginning to study programming, C and C++ are not the languages I'd recommend to start with. They are far not the easiest ones and contain features that are found nowhere in many other modern languages, such as direct operations on computer memory for example, that may be quite confusing (and even dangerous in some ways).
Unless you have a good reason to learn C in particular, I'd recommend to start with something like C#, Python or Javascript instead.
actually i have c language in my next semester from next month that's why i thought to start with it
#3
when I use the exit function in c
exit();
the compiler reports an error
too few parameters for exit to function but when I use
exit(0);
it works fine
please someone explain
#4
thanks for your help
now I have understood it
#5

Quote
I am still not sure how to help you. You are saying you have problems, but not telling what these problems are.
Maybe you can give an example?
alright
so to begin with, can you make me understand the working of this code
main()
{
    int yr;
    printf("Enter year");
    scanf("%d", &yr);
    yr = romanise (yr, 1000, 'm');
    similarly for 500, 100, and so on;
}
romanise(int y, int k, char ch)
{
    int i,j;
    if(y==9)
    {
          printf("ix");
          return (y%9);
    }
    if(y==4)
    {
         printf("iv");
         return (y%4);
    }
    j=y/k;
    for(i=1;i<=j;i++)
        printf("%c", ch);
    return(y-k*j);
}
please explain me how is the romanise function is working here
rest I have got
#6
Quote from: Crimson Wizard on Wed 27/12/2017 20:31:56
Quote from: amit14 on Wed 27/12/2017 19:32:58
guys, I have started learning c language through a book but I am facing some difficulties related to some topics so can anyone help me out
someone who is quite well in c and c++

Please be more specific, what topics are these?
like pointers and functions
actually I know what they are and how to use them in program but I am having problems in using them
#7
guys, I have started learning c language through a book but I am facing some difficulties related to some topics so can anyone help me out
someone who is quite well in c and c++
SMF spam blocked by CleanTalk