Search:

Type: Posts; User: nevx

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,954

    How to find repeated digits in a number

    This is my solution, but the Output is as follows:-
    Contains Duplicate Number:7 Count 2
    Contains Duplicate Number:7 Count 3Is there a way i can get only 1 Output like this :-
    Contains...
  2. Replies
    3
    Views
    3,047

    can you give an example of the exceptions you...

    can you give an example of the exceptions you mention ? If possible?
  3. Replies
    3
    Views
    3,047

    Address of array using scanf

    can someone please explain why when we use scanf to get array input we don't have to put the & sign in front of the Var name of the array

    e.g
    char name[20];
    int id;
    printf("Enter stuid,...
  4. Replies
    3
    Views
    3,723

    thanks , reading up on malloc() and realloc()

    thanks , reading up on malloc() and realloc()
  5. Replies
    3
    Views
    3,723

    re - declare array

    For E.g i declare an array t[5]; and later in the program i want increase the array size can i declare the same array let say t[10]; again ,
    without creating a new array with a larger size and copy...
  6. Replies
    3
    Views
    5,752

    Learning C++ before C# or Java ?

    I find it really helpful to learn c++ before i jump into c# or Java , The oops concepts become so clear to me , what do you think guys is this a good idea or a waste of time ?
  7. Replies
    9
    Views
    8,436

    on my way to learning C , awesome John.c , you...

    on my way to learning C , awesome John.c , you help me so much!
  8. Replies
    9
    Views
    8,436

    thanks , that's way better now , I understand...

    thanks , that's way better now , I understand perfectly now
  9. Replies
    9
    Views
    8,436

    n =m+n; int new[n]; printf("\nThe New array...

    n =m+n;

    int new[n];

    printf("\nThe New array Size %d :",n);

    for(i=0;i<n;i++)
    {
    new[i] =a[i];
    printf("\n%d",new[i]);
  10. Replies
    9
    Views
    8,436

    So what do i do now ? can you elaborate with the...

    So what do i do now ?
    can you elaborate with the code plz
  11. Replies
    9
    Views
    8,436

    what you mean by: just by assigning values out...

    what you mean by: just by assigning values out of bounds ?
  12. Replies
    9
    Views
    8,436

    i don't get it , but what i'm doing is shifting...

    i don't get it , but what i'm doing is shifting the values by n number then inserting the second array in the space , so what is the issue here ?
    //shifting
    for(i=m-1;i>=loc;i--)
    {
    ...
  13. Replies
    9
    Views
    8,436

    Inserting into array

    This is my sample code , however i seem to get an odd answer , can someone explain why i get my ans as :

    This is the Terminal output , LOOK BELOW FOR THE CODE

    Enter Element: 1 1
    ...
  14. Replies
    3
    Views
    4,006

    This Seems to Work int fact(int num) { ...

    This Seems to Work



    int fact(int num)
    {
    int i=1;
    int fact =1;
    if(num == 0) {
    num =1;
  15. Replies
    3
    Views
    4,006

    C Newbie Problem with Factorial Example

    Can anyone please help me with my logic here , i can't seem to figure it out, however when i try to find Factorial of num 2 i get the factorial as 2 which is right , but other numbers give me huge...
Results 1 to 15 of 15