User Profile

Collapse

Profile Sidebar

Collapse
nagesh0280
nagesh0280
Last Activity: Oct 23 '08, 01:51 PM
Joined: Mar 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nagesh0280
    started a topic Limitation of virtual functions?
    in C

    Limitation of virtual functions?

    Hello Experts,

    I was wondering (I'm absolutely new to OOP) if virtual functions are limited in their capability in a sense? Consider the following scenario.

    #include <iostream>

    using namespace std;

    class base
    {
    public:
    virtual int add (int a, int b) {
    cout << "Result = " << a + b << endl;
    return a + b;
    }
    };...
    See more | Go to post

  • How to determine the GNU version from a compiled library?

    Hi Experts,

    How can we determine from a shared object library, whether it was compiled with GCC version 3.2.3 or 4.1?

    To put this in a generic way, how to determine which gcc version was used to compile a particular shared object library?

    I have tried using the strings and nm commands on the lib to grep for something useful. But not sure what to look for. I'm on the Linux platform.

    Thanks,...
    See more | Go to post

  • Thanks for the reply. That helps clear some of the confusion. But I guess it will take me some time to get used to this ambiguity in C. Verilog is strictly governed by the IEEE LRM. The behavior is never undefined.

    But yes, the whole purpose of an HDL (like Verilog) and a general purpose software programming language (like C) is different.

    cheers!!
    --Nagesh
    See more | Go to post

    Leave a comment:


  • Difference between char array and a null terminated string?

    Hi experts,

    I'm from a Verilog HDL background and trying to learn C. There are a lot of similarities between Verilog and C but the concept of char arrays and strings has me confused. I'd appreciate any help or pointers here.

    This is the code, nothing fancy, just basic experiments around char array and string,

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

    int main() {
    ...
    See more | Go to post
No activity results to display
Show More
Working...