how do one prove that the language is inherently ambigous? like for example in languages that use unions such as
L = L1 U L2, where
L1 = {a^m b^m c^n | m,n>0}
L2 = {a^m b^n c^n | m,n>0}
User Profile
Collapse
-
ahaan.......... .thanks neway.......... -
-
another problem :s getting an error :s
#include <stdafx.h>
#include <windows.h>
int CALLBACK WinMain(HINSTAN CE hInstance,HINST ANCE hPrevInstance,L PSTR lpCmdLine,int nCmdShow)
{
MessageBox(NULL , "VISUAL PROGRAMMING \n\n FIRST ASSIGNMENT", "Virtual Uinversity of Pakistan", MB_OKCANCEL);
return 0;
}
I am getting an error "Error1 fatal error C1083:... -
-
-
ok so if i write it like this
#include <stdio.h>
typedef union
{
int a;
char b;
}data;
union data data1;
is it fine?
the ques was actually this
Define a union that can store both char and int type data values. You need to define that in a way such that later, the union name can be used as a data type itself. Declare...Leave a comment:
-
well how about this code ......... temme if its going to work or not ....... i need to submit this tagging macro problem ....... here is the code
#define SWAP(a, b) {a ^= b; b ^= a; a ^= b};
int main()
{
int x=3;
int y=6;
swap (x,y);
};Leave a comment:
-
I was supposed to define a union as a datatype suppose i gave it a name as store now how am i suppose to declare another union with this named union??Leave a comment:
-
lollllllz
well i was supposed to write a code which i have written but the last statement in the exercise was something i didnt understand .... and that is
Declare another union of the same constitution using the previously defined Union.Leave a comment:
-
-
ok so you mean i simply need to swap 2 variables (int) without going into complexity ....... that is just write a simple program that is defined as macro right??? I will post the code, do temme whether I am correct or not..Leave a comment:
-
I mailed my teacher to ask him what he meant and he answere me briefly saying :
dear student,
you can do swap operation on two values.Leave a comment:
-
-
what kind of help do you want? is it that you dont know HOW to solve your problem by use case diagram modeling or is it that the software you are using to draw is producing errors or whether you are having a hard time drawing use case diagram with that particular software?Leave a comment:
-
-
did i solve correct?
What will be the output of the following expression:
((a >> b) ^ c)& d
Where a = 12, b =2, c = 5 and d = 2
Ans ===> 010 (binary form) 2 (decimal form) -
I was not trying to be rude :( I was stating the problem...... i will check with the teacher straight away ..... i myself am confused ..... :(Leave a comment:
-
the problem is that the question states exactly the same way as i posted.Leave a comment:
No activity results to display
Show More
Leave a comment: