Hi, guys I need good program in procedural programming language which shows there is no importance to the data

It should explain the exact drawback of the procedural programming language

Recommended Answers

All 5 Replies

I have no idea what you want! A program that shows its input data is garbage? What kind of statement is that supposed to be???

Hi thank u for ur replay

I need the program which is like this

struct stack
{
  int top;
  int a;
};

stack e1;
e1.top=-1;
e1.a=45;

In the above program the top not become -1, i.e., we can't give the importance to the data

just like that, I need a program which is in porcedural programming language
which is not giving importance to data;

sorry My english is little bit clumzy

please try to understand, If u can't understand I will try to send again.

Hi thank u for ur replay

I need the program which is like this

struct stack
{
  int top;
  int a;
};

stack e1;
e1.top=-1;
e1.a=45;

In the above program the top not become -1, i.e., we can't give the importance to the data

just like that, I need a program which is in porcedural programming language
which is not giving importance to data;

sorry My english is little bit clumzy

please try to understand, If u can't understand I will try to send again.

That isn't a program. What does this phrase mean?

not giving importance to data

Here's a procedure

if ( firstPostFailed ) {
    tryAgain();
}
commented: Harsh, but funny XD +1
commented: Not harsh at all. Creative, instructive and elegant. These are the right adjetives for it. +8

Data is very, very important. To try and prove otherwise wouldn't make sense. If you mean create a program that ignores a piece of data:

#include <iostream>
using namespace std;

int main()
{
    int x;
    cin >> x;
    cout << "Hello\n\n";
    cout << "We do not care about your input\n";

    return 0;
}

There's a program where the data in the variable x is not important.

If this isn't what you mean, you need to try and clarify what you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.