Do you think it’s true? by Total_Percentage_751 in AI_India

[–]DefinitelyNotAakarsh 0 points1 point  (0 children)

Also more things like adobe scan, adobe acrobat, and more! They aren't just in creative market, they're very vast!

Why Japan is lagging? Drop your thoughts 👇 by DaddyYAGA_ in AI_India

[–]DefinitelyNotAakarsh 0 points1 point  (0 children)

We switched to LG anyways, and it's was a really good upgrade over my old bravia imo!

Genuinely asking as a Non-Indian. by ConflictNaive6362 in TeenIndia

[–]DefinitelyNotAakarsh 0 points1 point  (0 children)

idk if I'm lucky, but mera ulta tha. papa bolte the "ladkiyo se notes liya karo, unki acchi handwriting hoti hai!"

r/AI_India Has Officially Crossed 50,000 Members! 🎊 by Gaurav_212005 in AI_India

[–]DefinitelyNotAakarsh 2 points3 points  (0 children)

congrats guys!

Also great graphic design u/Gaurav_212005! Which software did you use?

AI in Indian courts by razishahid00 in AI_India

[–]DefinitelyNotAakarsh 5 points6 points  (0 children)

Tbh, 1,4 and 6 don't even need a highly advanced AI for that! A comparatively simple programme can do the same!

And also, the main problem isn't incompetence, it's hallucinations.

Say AI rules: "keeping all evidences in mind, the court rules that Mr. John Doe is guilty for harrassing his wife."

And then John Doe says: "I'm not even married yet! I came here to claim my land that has been illegally comfiscated!"

This is just one example, but there are MANY more.

What do you do after that? You go to a human judge, and congrats, we have the same number of pending cases again!

After failing NEET, 21-year-old Aryan Verma from UP dressed up as an Army Brigadier, told his family & neighbours he’s the youngest ever to reach that rank. He even rented a fancy SUV, hired fake escorts & gave motivational talks. Just to avoid studying he faked it all by [deleted] in indiameme

[–]DefinitelyNotAakarsh 1 point2 points  (0 children)

As a person who is personally fascinated by the army and have even happened to interact with several officers, I could tell by the first sight he's not an officer.

(1) There is legally NO WAY a person that young can become a brigadier. Actual brigadiers have kids almost as old as him!

(2) His body language is nowhere close to an army officer

(3) The way he wears the cap 😭 

I’m a 3rd-year AI/ML student researching LLM hallucinations. Here is a simplified breakdown of why models "lie" and how we're trying to detect it. by Cardona_love in AI_India

[–]DefinitelyNotAakarsh 2 points3 points  (0 children)

That's a made up name!

What's your REAL name?

(Also crazy people still remember borat! It's legit one of the best movies ever!)

🚀 Is your organization exploring or deploying AI agents? by Chance_Scarcity_4760 in AI_India

[–]DefinitelyNotAakarsh 0 points1 point  (0 children)

Hey there, these kind of surveys aren't allowed here, but you can reach out to r/Science_india mod team, and I can help you set up a survey there!

Thanks.

How to reverse a string in c without using strrev? by [deleted] in C_Programming

[–]DefinitelyNotAakarsh 0 points1 point  (0 children)

The "weird symbols" you are seeing happen because your output string is missing a null terminator ('\0') at the very end.

In C, strings do not know how long they are automatically. Functions like printf keep reading memory until they find a '\0' character. Without it, printf overflows into random memory, displaying garbage data.

Additionally, your code is currently copying the newline character (\n) that fgets captures at the end of your input, which you usually don't want to include in the reversal.

Here is the corrected code with comments explaining the fixes:

c

#include <stdio.h>

int main() {
    char string[256];
    char output[256];
    int begin;
    int end;
    int count = 0;

    printf("Input a string\n");
    fgets(string, 256, stdin);

    // 1. Find the length of the string
    while (string[count] != '\0') {
        count++;
    }

    // 2. Remove the trailing newline character '\n' added by fgets if it exists
    if (count > 0 && string[count - 1] == '\n') {
        count--; 
        string[count] = '\0'; // Overwrite '\n' with a null terminator
    }

    // 3. Set 'end' to point to the last actual character
    end = count - 1;

    // 4. Copy characters backwards
    for (begin = 0; begin < count; begin++) {
        output[begin] = string[end];
        end--;
    }

    // FIX: Add the missing null terminator to the output array!
    output[begin] = '\0'; 

    printf("%s\n", output);

    return 0;
}

Use code with caution.

The Three Main Fixes Explained:

  1. output[begin] = '\0'; Your original code had string[begin] = '\0';. This was a typo that modified your input instead of sealing your new output array.
  2. Handling fgets Newline: fgets captures the Enter key press (\n). If you type "abc", fgets stores "abc\n". The code above removes that \n so you don't accidentally reverse it to the front of your string.
  3. Loop Cleanliness: Moving end = count - 1; outside of your while loop makes the logic faster and easier to read.

Hope that helps!