About 716,000 results
Open links in new tab
  1. Top 50 String Coding Problems for Interviews - GeeksforGeeks

    Feb 19, 2025 · String-related problems often assess a candidate's understanding of concepts like pattern matching, manipulation, and efficient algorithm design. Here is the collection of the Top …

  2. android - Send C++ string to Java via JNI - Stack Overflow

    Jul 24, 2012 · Until now, your object array is only known to your c++ code and not to your java code. Only when you return it will your java app get access to it. I can think of a couple of ways …

  3. CS106B Java to C++ Guide - Stanford University

    Strings. Just as in Java, there is a standard C++ class for managing a sequence of characters. The C++ string class is quite similar to Java's String class. Consider the C++ code below:

  4. C++ Strings (With Examples) - Programiz

    In this tutorial, you'll learn to handle strings in C++. You'll learn to declare them, initialize them and use them for various input/output operations. Certification courses in Python, Java, SQL, …

  5. Strings: From Java to C - Harvard University

    Here is a Java example: int a = 5; int b = 7; String msg = "The sum of " + a + " and " + b + " is " + (a+b); Here is a C equivalent: int a = 5; int b = 7; char msg[ENOUGH_SPACE]; sprintf(msg, …

  6. Understanding String Data Types Across C, C++, Java, and Python

    Mar 28, 2024 · Let’s delve into how strings are represented and used in C, C++, Java, and Python, providing code examples to illustrate these differences. Strings in C: The Primitive …

  7. Practice Strings - CodeChef

    Practice String problems in C, C++, Python, Java and 10+ other languages. Solve these questions on Strings and prepare yourself for handling text based data.

  8. Link Java and C ++ code with SWIG

    I will introduce how to call C ++ code from Java using SWIG with sample code. In this article, I will write from hello world to class definition and simple STL usage. Since I wrote an article in …

  9. Convert a string from Java to C++ - Stack Overflow

    Aug 19, 2013 · You can take a look at std::to_string. Here is a live example of this code. Remember that not all the compilers support C++11 as of right now.

  10. Strings in Java vs Strings in C++: Key Differences Explained

    May 13, 2025 · In Java, strings are objects of the java.lang.String class with many built-in methods. In C++, you have two main choices: traditional C-style character arrays or the …

Refresh