Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
1a.what is the output of these 2
#include <stdio.h>
main() {
int i=0;
for( ;i<=2; ) printf(" %d",++i);
}
#include<stdio.h>
main( ){
int i,j;
for(i=0; i<2; i++){
for(j=0; j<2; j++){
printf("%d %d\n",i,j);
break;
}
}
}
1b. can someone show me how to do this problem
the following two 6-bit binary values are two's complement signed integers. Represent the sum as a 6-bit two's
complement value.
001001
111010
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3 #include <stdio.h> int main(void) { /* Type your code here. */ return 0; }arrow_forwardQ1: Write a brief description to each line in the following programs, and determine the output of the program with writing the statement of the question of the program?#include<stdio.h>int main(){ int mat1[12][12],mat2[12][12],mul[12][12]; int i,j,k,m,n,p; printf("Enter the number of rows and columns for 1st matrix\n"); scanf("%d%d",&m,&n); printf("Enter the elements of the 1st matrix\n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { scanf("%d",&mat1[i][j]); } } //no of col of 1st mat = no of rows of 2nd mat printf("Enter the number of columns for 2nd matrix\n"); scanf("%d",&p); printf("Enter the elements of the 2nd matrix\n"); for(i=0;i<n;i++) { for(j=0;j<p;j++) { scanf("%d",&mat2[i][j]); } } printf("The 1st matrix\n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { printf("%d\t",mat1[i][j]); }…arrow_forward4. What is the output of the following program: void fun (int n) { } cout << n; if (n = 3) return; fun (n+1); cout << n; a. 12 b. 132 c. 12321 d. 1234 e. 12345 int main () Bo{ } fun (1); return 0;arrow_forwardWhat is the output of this C code? #include <stdio.h> int main() { float f = 0.1; if (f == 0.1) printf("True"); else printf("False"); } a) True b) Falsearrow_forwardarrow_back_iosarrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education